summaryrefslogtreecommitdiffstats
path: root/firmware/libs-device/osccal.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/libs-device/osccal.h')
-rw-r--r--firmware/libs-device/osccal.h5
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