Skip to content

Commit ce7e458

Browse files
committed
Call enable_interrupts when initialising IRQs
Fixes raspberrypi/pico-examples#584, supercedes raspberrypi/pico-examples#588
1 parent 67f89e4 commit ce7e458

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

src/rp2_common/hardware_irq/irq.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,8 @@ void irq_add_tail_to_free_list(struct irq_handler_chain_slot *slot) {
666666
#endif
667667

668668
__weak void runtime_init_per_core_irq_priorities(void) {
669+
// enable interrupts that might be disabled by a previous bootloader stage
670+
enable_interrupts();
669671
#if PICO_DEFAULT_IRQ_PRIORITY != 0
670672
#ifndef __riscv
671673
// static_assert(!(NUM_IRQS & 3), ""); // this isn't really required - the reg is still 32 bit

0 commit comments

Comments
 (0)