summaryrefslogtreecommitdiff
path: root/digital/beacon/src/sensors.h
diff options
context:
space:
mode:
authorFlorent Duchon2012-04-17 22:36:12 +0200
committerFlorent Duchon2012-04-17 22:36:12 +0200
commit7231b985f199651b1772ad6d3dc31174476c1c22 (patch)
tree7e27f200c6c178e98b9eba4047a30d4b90faf71a /digital/beacon/src/sensors.h
parentf5b85a06258fc17310d91ba0925c34608b6315d7 (diff)
digital/beacon: add laser support
Diffstat (limited to 'digital/beacon/src/sensors.h')
-rw-r--r--digital/beacon/src/sensors.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/digital/beacon/src/sensors.h b/digital/beacon/src/sensors.h
index 0f868d65..f2aa3c3b 100644
--- a/digital/beacon/src/sensors.h
+++ b/digital/beacon/src/sensors.h
@@ -26,7 +26,7 @@
#ifndef _SENSORS_H
#define _SENSORS_H
-#define CODEWHEEL_CPR 500
+#define CODEWHEEL_CPR 499
/* This function initializes the laser pin input and associated interrupt */
void sensors_laser_init(void);
@@ -35,9 +35,9 @@ void sensors_laser_init(void);
void sensors_codewheel_init(void);
/* This function returns the wheel position */
-int sensors_codewheel_get_value(void);
+uint16_t sensors_codewheel_get_value(void);
-/* IRQ vector for Laser Interrupt */
-void sensors_laser_irq_vector(void);
+/* This function resets the wheel position */
+void sensors_codewheel_reset(void);
#endif \ No newline at end of file