From 645b7d11df890ed99e5b00c8272d4e794060f703 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Thu, 13 May 2010 01:28:31 +0200 Subject: digital/io/src: add event queue --- digital/io/src/main.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'digital/io/src/main.h') 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 */ -- cgit v1.2.3