From 7231b985f199651b1772ad6d3dc31174476c1c22 Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Tue, 17 Apr 2012 22:36:12 +0200 Subject: digital/beacon: add laser support --- digital/beacon/src/sensors.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'digital/beacon/src/sensors.h') 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 -- cgit v1.2.3