aboutsummaryrefslogtreecommitdiffstats
path: root/demos/AVR-ATmega128-GCC/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/AVR-ATmega128-GCC/board.c')
-rw-r--r--demos/AVR-ATmega128-GCC/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/AVR-ATmega128-GCC/board.c b/demos/AVR-ATmega128-GCC/board.c
index b0907d6c4..6ac43a218 100644
--- a/demos/AVR-ATmega128-GCC/board.c
+++ b/demos/AVR-ATmega128-GCC/board.c
@@ -24,7 +24,7 @@
#include "board.h"
-ISR(TIMER0_OVF_vect) {
+ISR(TIMER0_COMP_vect) {
chSysIRQEnterI();
@@ -73,7 +73,7 @@ void hwinit(void) {
*/
TCCR0 = (1 << WGM01) | (0 << WGM00) | // CTC mode.
(0 << COM01) | (0 << COM00) | // OC0A disabled (normal I/O).
- (0 << CS02) | (1 << CS01) | (1 << CS00); // CLK/64 clock source.
+ (1 << CS02) | (0 << CS01) | (0 << CS00); // CLK/64 clock source.
OCR0 = F_CPU / 64 / CH_FREQUENCY - 1;
TCNT0 = 0; // Reset counter.
TIFR = (1 << OCF0); // Reset pending (if any).