void hadUsbReset(void) { cli(); calibrateOscillator(); sei(); eeprom_write_byte(OSCCAL_EEPROM_ADDR, OSCCAL); /* store the calibrated value in EEPROM byte 0*/ }
void hadUsbReset(void) { cli(); // usbMeasureFrameLength() counts CPU cycles, so disable interrupts. calibrateOscillator(); sei(); eeprom_update_byte(&eeCalibrationMemory, OSCCAL); /* store the calibrated value in EEPROM */ }
void usbEventResetReady(void) { cli(); // usbMeasureFrameLength() counts CPU cycles, so disable interrupts. calibrateOscillator(); sei(); eeprom_write_byte(0, OSCCAL); // store the calibrated value in EEPROM }
void usbEventResetReady(void) { calibrateOscillator(); eeprom_write_byte(0, OSCCAL); /* store the calibrated value in EEPROM */ }
void usbEventResetReady(void) { calibrateOscillator(); }
void calibrateAndSaveOscillator(void) { calibrateOscillator(); eeprom_write_byte(EEPROM_OSCCAL_BYTE, OSCCAL); }