diff ctrl.pio @ 25:6070d2e66b4c

Cascade IRQs from DAC to control so manual & external trigger are the same.
author Daniel O'Connor <darius@dons.net.au>
date Tue, 25 Feb 2025 16:53:32 +1030
parents 8d759cf5a9e7
children e1d8fe3e418a
line wrap: on
line diff
--- a/ctrl.pio	Tue Feb 25 16:47:00 2025 +1030
+++ b/ctrl.pio	Tue Feb 25 16:53:32 2025 +1030
@@ -3,11 +3,13 @@
 ;
 
 .program ctrl
-.define TRIGGER_IRQ 1
+.define DAC_TRIGGER_IRQ 0
+.define CTRL_TRIGGER_IRQ 1
+
 ; Assert all 0s
     mov pins, null
 ; Wait for start trigger and clear IRQ
-    wait 1 irq TRIGGER_IRQ
+    wait 1 irq CTRL_TRIGGER_IRQ
 .wrap_target
     out pins 8
     nop