summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/main.c
diff options
context:
space:
mode:
authorJérémy Dufour2008-04-14 12:06:01 +0200
committerJérémy Dufour2008-04-14 12:06:01 +0200
commitd3c8bf5e81f46d66ff0badcbcbf20a3d828a30eb (patch)
treef66be160813127528352eeed837d223d6f520fe4 /digital/io/src/main.c
parent7a7c0bb8b26353b2e754b4eaa79125aed33b0279 (diff)
* 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.
Diffstat (limited to 'digital/io/src/main.c')
-rw-r--r--digital/io/src/main.c8
1 files changed, 8 insertions, 0 deletions
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"
@@ -54,6 +55,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.
*/
static void
@@ -69,6 +75,8 @@ main_init (void)
asserv_init ();
/* Trap module */
trap_init ();
+ /* Switch module */
+ switch_init ();
/* Enable interrupts */
sei ();