summaryrefslogtreecommitdiff
path: root/digital/beacon/src/sensors.c
diff options
context:
space:
mode:
authorFlorent Duchon2012-04-17 22:34:20 +0200
committerFlorent Duchon2012-04-17 22:34:20 +0200
commitf5b85a06258fc17310d91ba0925c34608b6315d7 (patch)
treeed92fea02fc68cb46aedb024cede16a943a9e1e1 /digital/beacon/src/sensors.c
parent41bb8dfc23e49a2a1bcfc44fe56d213d69cd623f (diff)
digital/beacon: add get value and reset counter to the debug task
Diffstat (limited to 'digital/beacon/src/sensors.c')
-rw-r--r--digital/beacon/src/sensors.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/digital/beacon/src/sensors.c b/digital/beacon/src/sensors.c
index 03037322..be7f6ea0 100644
--- a/digital/beacon/src/sensors.c
+++ b/digital/beacon/src/sensors.c
@@ -24,10 +24,10 @@
* }}} */
#include <types.h>
-#include <irq.h>
+#include <avr/interrupt.h>
#include "sensors.h"
-
-
+#include "debug.h"
+#include "led.h"
/********************************************************/
@@ -61,11 +61,10 @@ uint16_t sensors_codewheel_get_value(void)
return TCNT3;
}
-
-/* IRQ vector for Laser Interrupt */
-void sensors_laser_irq_vector(void)
+/* This function resets the wheel position */
+void sensors_codewheel_reset(void)
{
- //calculate and send value
+ TCNT3 = 0;
}
/* IRQ vector for CodeWheel complete turn */