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.c33
1 files changed, 1 insertions, 32 deletions
diff --git a/digital/io/src/top.c b/digital/io/src/top.c
index dbbe4892..7201f192 100644
--- a/digital/io/src/top.c
+++ b/digital/io/src/top.c
@@ -1,7 +1,7 @@
/* top.c */
/* io - Input & Output with Artificial Intelligence (ai) support on AVR. {{{
*
- * Copyright (C) 2008 NĂ©lio Laranjeiro
+ * Copyright (C) 2009 Nicolas Haller
*
* APBTeam:
* Web: http://apbteam.org/
@@ -22,35 +22,4 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* }}} */
-#include "common.h"
-#include "asserv.h"
#include "top.h"
-#include "fsm.h"
-
-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 (void)
-{
- /* Set parameters. */
- top_data.sequence = 0x15;
- top_data.boxes_used = 0x0;
- top_data.sequence_to_do = 0x15;
- /* Start the FSM. */
- fsm_init (&top_fsm);
- 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_;
-}