summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/top.c
diff options
context:
space:
mode:
Diffstat (limited to 'digital/io/src/top.c')
-rw-r--r--digital/io/src/top.c12
1 files changed, 12 insertions, 0 deletions
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_;
+}