diff options
author | Christian Pointner <equinox@mur.at> | 2012-05-22 16:12:37 +0000 |
---|---|---|
committer | Christian Pointner <equinox@mur.at> | 2012-05-22 16:12:37 +0000 |
commit | 24a4477a7334e67fcf8dc934800e97a19c3dc822 (patch) | |
tree | 350437c5e0dc8579f6babc26f9f9154c5df42327 /software | |
parent | updated footprint for hhd70 without PA (diff) |
improved CPU_PRESCALE Macro
git-svn-id: https://svn.spreadspace.org/mur.sat@476 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software')
-rw-r--r-- | software/hhd70dongle/hhd70dongle.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/software/hhd70dongle/hhd70dongle.c b/software/hhd70dongle/hhd70dongle.c index 0f216d2..fd92527 100644 --- a/software/hhd70dongle/hhd70dongle.c +++ b/software/hhd70dongle/hhd70dongle.c @@ -39,8 +39,7 @@ #include "c1101lib.h" #include "usb_rawhid.h" - -#define CPU_PRESCALE(n) (CLKPR = 0x80, CLKPR = (n)) +#define CPU_PRESCALE(n) do { CLKPR = 0x80; CLKPR = (n); } while(0) uint8_t read_buffer[64]; // buffer for reading usb signals uint8_t write_buffer[64]; // buffer for writing usb signals |