예제 #1
0
void hadUsbReset(void)
{
	cli();
	calibrateOscillator();
	sei();
    eeprom_write_byte(OSCCAL_EEPROM_ADDR, OSCCAL);   /* store the calibrated value in EEPROM byte 0*/
}
예제 #2
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 */
}
예제 #3
0
void    usbEventResetReady(void)
{
    cli();  // usbMeasureFrameLength() counts CPU cycles, so disable interrupts.
    calibrateOscillator();
    sei();
    eeprom_write_byte(0, OSCCAL);   // store the calibrated value in EEPROM
}
예제 #4
0
void  usbEventResetReady(void)
{
  calibrateOscillator();
  eeprom_write_byte(0, OSCCAL);   /* store the calibrated value in EEPROM */
}
void usbEventResetReady(void)
{
    calibrateOscillator();
}
예제 #6
0
void calibrateAndSaveOscillator(void) {
  calibrateOscillator();
  eeprom_write_byte(EEPROM_OSCCAL_BYTE, OSCCAL);
}