summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Duchon2012-04-17 22:29:47 +0200
committerFlorent Duchon2012-04-17 22:29:47 +0200
commit32aa3d9bf239155adacd451a182c013ea1ec546d (patch)
treeed044d82677cac63d3c10f7bfacfa58a651a013b
parent5f48d0a9f1daf4425af4f7029496bd21e0391b48 (diff)
digital/beacon: enable output compare interrupt for codewheel sensor
-rw-r--r--digital/beacon/src/sensors.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/digital/beacon/src/sensors.c b/digital/beacon/src/sensors.c
index 6b7a11bb..9fcdd3a2 100644
--- a/digital/beacon/src/sensors.c
+++ b/digital/beacon/src/sensors.c
@@ -51,6 +51,7 @@ void sensors_codewheel_init(void)
OCR3A = CODEWHEEL_CPR;
/* Enable Interrupts */
+ TIMSK3 |= (1<<OCIE3A);
sei();
}
@@ -68,6 +69,7 @@ void sensors_laser_irq_vector(void)
}
/* IRQ vector for CodeWheel complete turn */
+ISR(TIMER3_COMPA_vect)
ISR(TIMER3_OVF_vect)
{
//Top tour ++