From d3c8bf5e81f46d66ff0badcbcbf20a3d828a30eb Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Mon, 14 Apr 2008 12:06:01 +0200 Subject: * digital/io/src * build - add dependency of fsm.h for main.c (for bootstrap) ; - ensure it is building for host target. * get samples FSM - remove unneeded fields in the getsamples structures ; - rename it to be more 'private' (to prevent declaring the same one) ; * top FSM - rewrite it ; - still missing some parts to implement. * general - manage color of the bot ; - initialize the switch module in the main_init ; - add position of the gutter. --- digital/io/src/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'digital/io/src/main.c') diff --git a/digital/io/src/main.c b/digital/io/src/main.c index f2bd5355..85987b52 100644 --- a/digital/io/src/main.c +++ b/digital/io/src/main.c @@ -40,6 +40,7 @@ #include "eeprom.h" /* Parameters loaded/stored in the EEPROM */ #include "trap.h" /* Trap module (trap_* functions) */ #include "fsm.h" /* fsm_* */ +#include "giboulee.h" /* team_color */ #include "io.h" @@ -53,6 +54,11 @@ static void main_init (void); */ static void main_loop (void); +/** + * Our color. + */ +enum team_color_e bot_color; + /** * Initialize the main and all its subsystems. */ @@ -69,6 +75,8 @@ main_init (void) asserv_init (); /* Trap module */ trap_init (); + /* Switch module */ + switch_init (); /* Enable interrupts */ sei (); -- cgit v1.2.3