From 55e576638e744b34021de662f0e8f4d9f5bbf6fd Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Thu, 23 Oct 2008 19:37:14 +0200 Subject: pressure_control: Add manual valve switching. Signed-off-by: Michael Buesch --- pressure_control/firmware/valves.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'pressure_control/firmware/valves.c') diff --git a/pressure_control/firmware/valves.c b/pressure_control/firmware/valves.c index f77d8b2..70a2b6a 100644 --- a/pressure_control/firmware/valves.c +++ b/pressure_control/firmware/valves.c @@ -31,14 +31,8 @@ #define VALVE1_14 6 /* Pin for valve-1 position 14 */ #define VALVE1_12 7 /* Pin for valve-1 position 12 */ -/* State for one valve. */ -enum valve_state { - VALVE_STATE_12, - VALVE_STATE_14, -}; - -static void valve0_switch(uint8_t state) +void valve0_switch(uint8_t state) { VALVE_PORT &= ~((1 << VALVE0_12) | (1 << VALVE0_14)); if (state == VALVE_STATE_12) @@ -47,7 +41,7 @@ static void valve0_switch(uint8_t state) VALVE_PORT |= (1 << VALVE0_14); } -static void valve1_switch(uint8_t state) +void valve1_switch(uint8_t state) { VALVE_PORT &= ~((1 << VALVE1_12) | (1 << VALVE1_14)); if (state == VALVE_STATE_12) -- cgit v1.2.3