]> the.earth.li Git - temper-clone.git/blobdiff - libs-device/osccal.h
Reset 1-Wire state if we get a USB reset
[temper-clone.git] / libs-device / osccal.h
index 3452aa77e8c8b70a24df6647186c1c1c529827a1..a1fb2effe6243c4bfc642dc14163f908bd356b7c 100644 (file)
@@ -43,7 +43,8 @@ deviation! All other frequency modules require at least 0.2% precision.
 
 #ifndef __ASSEMBLER__
 void    calibrateOscillatorASM(void);
-#define USB_RESET_HOOK(resetStarts)  if(!resetStarts){ calibrateOscillatorASM();}
+void    hadUsbReset(void);
+#define USB_RESET_HOOK(resetStarts)  if(!resetStarts){ calibrateOscillatorASM(); hadUsbReset();}
 #endif
 /* This function calibrates the RC oscillator so that the CPU runs at F_CPU.
  * It MUST be called immediately after the end of a USB RESET condition!