From e1ecc232dc7ef2bd5f60cc5b93c5081c3e3c1fee Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Mon, 8 Jul 2024 11:45:12 +0100 Subject: [PATCH] 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 --- ports/rp2/rp2_pio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/rp2/rp2_pio.c b/ports/rp2/rp2_pio.c index 410269e2d3..da62e6bec9 100644 --- a/ports/rp2/rp2_pio.c +++ b/ports/rp2/rp2_pio.c @@ -149,7 +149,7 @@ void rp2_pio_init(void) { void rp2_pio_deinit(void) { // Disable and clear interrupts. - irq_set_mask_enabled((1u << PIO0_IRQ_0) | (1u << PIO0_IRQ_1), false); + irq_set_mask_enabled((1u << PIO0_IRQ_0) | (1u << PIO1_IRQ_0), false); irq_remove_handler(PIO0_IRQ_0, pio0_irq0); irq_remove_handler(PIO1_IRQ_0, pio1_irq0);