From ada3d26e47f5a568cb1dd6196d622a33623138d2 Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Sun, 22 Apr 2012 22:37:43 +0200 Subject: digital/beacon: add codewheel representation states --- digital/beacon/src/codewheel.c | 15 +++++++++++++++ digital/beacon/src/codewheel.h | 20 ++++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/digital/beacon/src/codewheel.c b/digital/beacon/src/codewheel.c index 32b45b37..84ca69f6 100644 --- a/digital/beacon/src/codewheel.c +++ b/digital/beacon/src/codewheel.c @@ -28,10 +28,14 @@ #include "debug_avr.h" #include "codewheel.h" +codewheel_s codewheel; /* This function initializes the codewheel optical sensors and associated interrupt */ void codewheel_init(void) { + /* Set codewheel state*/ + codewheel_set_state(CODEWHEEL_INIT); + /* Select external clock on rising edge for timer 3 */ TCCR3B |= (1<