From c5ce79b4c6c8671e0e6062706695fc05439252f5 Mon Sep 17 00:00:00 2001 From: Nicolas Haller Date: Fri, 8 May 2009 10:13:00 +0200 Subject: * digital/io/src: - first test: top FSM order basic move to the bot --- digital/io/src/top.c | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) (limited to 'digital/io/src/top.c') 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_; -} -- cgit v1.2.3