X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=libs-device%2Fosccal.h;h=a1fb2effe6243c4bfc642dc14163f908bd356b7c;hb=267a3bfd1e8892f8ae75bc4b3d1a5c4b310f1805;hp=3452aa77e8c8b70a24df6647186c1c1c529827a1;hpb=70cdc8988128c1f25dde22f32ef517667a5e6496;p=temper-clone.git 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!