Revision f115416e scout_avr/src/Atmega128rfa1.cpp

View differences:

scout_avr/src/Atmega128rfa1.cpp
59 59
  TCCR0B = _BV(CS01) | _BV(CS00);
60 60
  // enable interrupt on compare match A
61 61
  TIMSK0 = _BV(OCIE0A);
62
  // (1 ms) * 16 MHz / 64 prescaler = 250
63
  //OCR0A = 250;
64
  // (1 ms) * 8 MHz / 64 prescaler = 125
65
  OCR0A = 125;
62
  // 1 ms with 1/64 prescaler
63
  OCR0A = F_CPU / 1000 / 64;
66 64
  millis = 0;
67 65

  
68 66
  sei();

Also available in: Unified diff