summaryrefslogtreecommitdiffstats
path: root/pressure_control/firmware/main.c
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2009-11-22 12:12:27 +0100
committerMichael Buesch <mb@bu3sch.de>2009-11-22 12:12:27 +0100
commit72f6b5a060553a81744f9e598f898d4567aee737 (patch)
treef840e2a8ae5b8122250f9cad291d29021d46a901 /pressure_control/firmware/main.c
parente45fe924520ec4ee1463f9402a4506ade5743700 (diff)
downloadcnc-72f6b5a060553a81744f9e598f898d4567aee737.tar.xz
cnc-72f6b5a060553a81744f9e598f898d4567aee737.zip
pressure_control: Allow valve coils on individual ports
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Diffstat (limited to 'pressure_control/firmware/main.c')
-rw-r--r--pressure_control/firmware/main.c9
1 files changed, 7 insertions, 2 deletions
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<<MUX0), 245, 4400, 10000);
bues.ch cgit interface