From 94f06205a8a95bc9b03109329d84410967ba12b4 Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Mon, 21 Apr 2008 23:56:26 +0200 Subject: * digital/io/src - resetting of asserv parameters is now a separate state in order to get the acknowledge from the asserv board ; - integrate the handle of this event into the main loop. --- digital/io/src/top.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'digital/io/src/top.c') diff --git a/digital/io/src/top.c b/digital/io/src/top.c index d290efe5..6d8ab268 100644 --- a/digital/io/src/top.c +++ b/digital/io/src/top.c @@ -29,6 +29,12 @@ struct top_data_t top_data; +/** + * When we need to tell the main loop we want to be alerted when the last + * command sent to the asserv board has been acknowledged. + */ +uint8_t top_waiting_for_settings_ack_ = 0; + /** Start a main FSM. */ void top_start (uint8_t color_team) @@ -45,3 +51,9 @@ top_start (uint8_t color_team) fsm_handle_event (&top_fsm, TOP_EVENT_start); } +/* Do we need to tell the top FSM the settings has been acknowledged? */ +uint8_t +top_generate_settings_ack_event (void) +{ + return top_waiting_for_settings_ack_; +} -- cgit v1.2.3