File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
ports/raspberrypi/common-hal/rp2pio Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 34
34
#include "src/rp2_common/hardware_dma/include/hardware/dma.h"
35
35
#include "src/rp2_common/hardware_pio/include/hardware/pio_instructions.h"
36
36
#include "src/rp2040/hardware_structs/include/hardware/structs/iobank0.h"
37
+ #include "src/rp2_common/hardware_irq/include/hardware/irq.h"
37
38
38
39
#include "lib/utils/interrupt_char.h"
39
40
#include "py/obj.h"
@@ -101,6 +102,13 @@ void reset_rp2pio_statemachine(void) {
101
102
_reset_statemachine (pio , j , false);
102
103
}
103
104
}
105
+ for (uint8_t irq = PIO0_IRQ_0 ; irq <= PIO1_IRQ_1 ; irq ++ ) {
106
+ irq_handler_t int_handler = irq_get_exclusive_handler (irq );
107
+ if (int_handler > 0 ) {
108
+ irq_set_enabled (irq , false);
109
+ irq_remove_handler (irq ,int_handler );
110
+ }
111
+ }
104
112
}
105
113
106
114
STATIC uint32_t _check_pins_free (const mcu_pin_obj_t * first_pin , uint8_t pin_count , bool exclusive_pin_use ) {
You can’t perform that action at this time.
0 commit comments