summaryrefslogtreecommitdiff
path: root/digital/beacon/src/sensors.c
diff options
context:
space:
mode:
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 */