Skip to content

Commit e1ecc23

Browse files
Gadgetoiddpgeorge
authored andcommitted
rp2/rp2_pio: Disable correct IRQ for PIO1.
Fix a typo that was disabling PIO0_IRQ_1 instead of PIO1_IRQ_0. Signed-off-by: Phil Howard <[email protected]>
1 parent 9db16cf commit e1ecc23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/rp2/rp2_pio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ void rp2_pio_init(void) {
149149

150150
void rp2_pio_deinit(void) {
151151
// Disable and clear interrupts.
152-
irq_set_mask_enabled((1u << PIO0_IRQ_0) | (1u << PIO0_IRQ_1), false);
152+
irq_set_mask_enabled((1u << PIO0_IRQ_0) | (1u << PIO1_IRQ_0), false);
153153
irq_remove_handler(PIO0_IRQ_0, pio0_irq0);
154154
irq_remove_handler(PIO1_IRQ_0, pio1_irq0);
155155

0 commit comments

Comments
 (0)