mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
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 <graham.sanderson@raspberrypi.com>
This commit is contained in:
parent
67f89e44aa
commit
6860f0d882
1 changed files with 4 additions and 0 deletions
|
|
@ -680,6 +680,10 @@ __weak void runtime_init_per_core_irq_priorities(void) {
|
|||
}
|
||||
#endif
|
||||
#endif
|
||||
#if !PICO_RP2040
|
||||
// enable interrupts that might be disabled by a previous bootloader stage (guarded for RP2040 as there is no bootrom chain_image call there)
|
||||
enable_interrupts();
|
||||
#endif
|
||||
}
|
||||
|
||||
static uint get_user_irq_claim_index(uint irq_num) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue