Mercurial > ~darius > hgwebdir.cgi > modulator
diff modulator.c @ 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 | c7845db23ab2 |
children | 336f06fa6e47 |
line wrap: on
line diff
--- a/modulator.c Tue Feb 25 16:47:00 2025 +1030 +++ b/modulator.c Tue Feb 25 16:53:32 2025 +1030 @@ -16,7 +16,7 @@ ** Create modulation shape ** */ -#define WITH_TRIGGER +//#define WITH_TRIGGER #include <stdio.h> #include <string.h> @@ -125,8 +125,8 @@ pwm_clear_irq(slice_num); #ifndef WITH_TRIGGER - // Manually trigger DAQ SM (cleared by SM) - pulse_pio->irq_force = 3; + // Manually trigger DAC SM (cleared by SM) + pulse_pio->irq_force = 1; // 'scope trigger gpio_put(2, 1);