X-Git-Url: https://the.earth.li/gitweb/?p=temper-clone.git;a=blobdiff_plain;f=libs-device%2Fosccal.h;fp=libs-device%2Fosccal.h;h=a1fb2effe6243c4bfc642dc14163f908bd356b7c;hp=3452aa77e8c8b70a24df6647186c1c1c529827a1;hb=b45ff61935c58083c18d718c410604489080af76;hpb=97e6ede6c1e3556ec66f11ad66c6ba7c36885423 diff --git a/libs-device/osccal.h b/libs-device/osccal.h index 3452aa7..a1fb2ef 100644 --- a/libs-device/osccal.h +++ b/libs-device/osccal.h @@ -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!