diff options
author | cpldcpu <cpldcpu@gmail.com> | 2013-11-04 04:43:26 +0100 |
---|---|---|
committer | cpldcpu <cpldcpu@gmail.com> | 2013-11-04 04:43:26 +0100 |
commit | 819ce8ac705e9a336cb60fdb6f525a17cbc9dcb3 (patch) | |
tree | 18f8069c3fc5cddab675b874ca9d63a65eba648b /firmware/libs-device/osccal.h | |
parent | 97c24d7b6ab9fb4436308a9423810b54eed54a51 (diff) | |
download | micronucleus-819ce8ac705e9a336cb60fdb6f525a17cbc9dcb3.tar.gz micronucleus-819ce8ac705e9a336cb60fdb6f525a17cbc9dcb3.tar.bz2 micronucleus-819ce8ac705e9a336cb60fdb6f525a17cbc9dcb3.zip |
further size optimization in calibrateoscillator.
1976 bytes
Diffstat (limited to 'firmware/libs-device/osccal.h')
-rw-r--r-- | firmware/libs-device/osccal.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/libs-device/osccal.h b/firmware/libs-device/osccal.h index 710ce05..6f443a5 100644 --- a/firmware/libs-device/osccal.h +++ b/firmware/libs-device/osccal.h @@ -22,10 +22,11 @@ calibrateOscillator() from the reset hook in usbconfig.h: */ #ifndef __ASSEMBLER__ -#include <avr/interrupt.h> // for sei() extern void calibrateOscillator(void); +//extern void calibrateOscillatorASM(void); #endif -#define USB_RESET_HOOK(resetStarts) if(!resetStarts){cli(); calibrateOscillator(); sei();} +#define USB_RESET_HOOK(resetStarts) if(!resetStarts){ calibrateOscillator(); } +//#define USB_RESET_HOOK(resetStarts) if(!resetStarts){ calibrateOscillatorASM(); } /* This routine is an alternative to the continuous synchronization described |