From ea1ac11fbefede9b55714e8c1b9f93ac9714afec Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Sun, 20 Apr 2008 16:05:33 +0200 Subject: * digital/io/src - move private functions directly into source files ; - correct headers. --- digital/io/src/getsamples.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'digital/io/src/getsamples.c') diff --git a/digital/io/src/getsamples.c b/digital/io/src/getsamples.c index 03ce8982..17dee9e8 100644 --- a/digital/io/src/getsamples.c +++ b/digital/io/src/getsamples.c @@ -22,12 +22,8 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * }}} */ -#include "common.h" #include "getsamples.h" #include "fsm.h" -#include "trap.h" - -#include "io.h" /** * The approach angle to face the distributor. @@ -51,24 +47,3 @@ getsamples_start (int16_t approach_angle, uint8_t sample_bitfield) fsm_init (&getsamples_fsm); fsm_handle_event (&getsamples_fsm, GETSAMPLES_EVENT_start); } - -/* Configure the classifier (using the trap and the internal bit field) for the first bit set to 1. */ -void -getsamples_configure_classifier (void) -{ - uint8_t trap_num; - /* Go through all the bits of the sample bit field */ - for (trap_num = 0; trap_num < trap_count; trap_num++) - { - /* Is the bit set? */ - if (bit_is_set (sample_bitfield_, trap_num)) - { - /* Configure the classifier */ - trap_setup_path_to_box (trap_num); - /* Reset this bit */ - sample_bitfield_ &= ~_BV (trap_num); - /* Stop here */ - return; - } - } -} -- cgit v1.2.3