summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/main.h
diff options
context:
space:
mode:
authorNicolas Schodet2010-05-13 01:28:31 +0200
committerNicolas Schodet2010-05-13 01:28:31 +0200
commit645b7d11df890ed99e5b00c8272d4e794060f703 (patch)
tree9135cbfc98ea2a5770635b977c2b08da78986ff5 /digital/io/src/main.h
parent953ff53ccf92e700c7c25136eabbe6699caa90f9 (diff)
digital/io/src: add event queue
Diffstat (limited to 'digital/io/src/main.h')
-rw-r--r--digital/io/src/main.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/digital/io/src/main.h b/digital/io/src/main.h
index 0c2083ba..9096b532 100644
--- a/digital/io/src/main.h
+++ b/digital/io/src/main.h
@@ -25,16 +25,12 @@
*
* }}} */
-/**
- * Post a event to the top FSM in the next iteration of main loop.
- * You just need to set variable to the value of the event you want to post to
- * the top FSM.
- * It will be posted and cleared in the next main loop iteration.
- */
-extern uint8_t main_post_event_for_top_fsm;
-
extern vect_t main_obstacles_pos[2];
extern uint8_t main_obstacles_nb;
+/** Post an event to be processed in the next main loop. */
+void
+main_post_event (uint8_t event);
+
#endif /* main_h */