From 72f6b5a060553a81744f9e598f898d4567aee737 Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Sun, 22 Nov 2009 12:12:27 +0100 Subject: pressure_control: Allow valve coils on individual ports Signed-off-by: Michael Buesch --- pressure_control/firmware/main.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'pressure_control/firmware/main.c') diff --git a/pressure_control/firmware/main.c b/pressure_control/firmware/main.c index d39008d..b6f8220 100644 --- a/pressure_control/firmware/main.c +++ b/pressure_control/firmware/main.c @@ -49,8 +49,13 @@ static uint8_t sensor_cycle; /* The hardware definitions. */ -DEFINE_VALVE(z_control_valves, VALVES_2MAG, D, 6, 7, 4, 5, 0); -DEFINE_VALVE(xy_control_valves, VALVES_1MAG, C, 2, -1, 3, -1, 400); +DEFINE_VALVE_2MAG(z_control_valves, + D,6, D,7, + D,4, D,5, + 0); +DEFINE_VALVE_1MAG(xy_control_valves, + C,2, C,3, + 400); static DEFINE_SENSOR(z_control_sensor, 0, 245, 4400, 10000); static DEFINE_SENSOR(xy_control_sensor, (1<