Skip to content

Commit 6860f0d

Browse files
Call enable_interrupts when initialising IRQs (#2491)
* Call enable_interrupts when initialising IRQs Fixes raspberrypi/pico-examples#584, supercedes raspberrypi/pico-examples#588 * move enable_interrupts to the end though it doesn't make much difference * guard enable_interrupts by !RP2040 as it isn't needed there --------- Co-authored-by: Graham Sanderson <[email protected]>
1 parent 67f89e4 commit 6860f0d

File tree

1 file changed

+4
-0
lines changed
  • src/rp2_common/hardware_irq

1 file changed

+4
-0
lines changed

src/rp2_common/hardware_irq/irq.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,10 @@ __weak void runtime_init_per_core_irq_priorities(void) {
680680
}
681681
#endif
682682
#endif
683+
#if !PICO_RP2040
684+
// enable interrupts that might be disabled by a previous bootloader stage (guarded for RP2040 as there is no bootrom chain_image call there)
685+
enable_interrupts();
686+
#endif
683687
}
684688

685689
static uint get_user_irq_claim_index(uint irq_num) {

0 commit comments

Comments
 (0)