Merge pull request #5341 from urish/patch-1
Enable WFI for raspberrypi port
This commit is contained in:
commit
8520c430a7
@ -238,8 +238,8 @@ void port_interrupt_after_ticks(uint32_t ticks) {
|
||||
void port_idle_until_interrupt(void) {
|
||||
common_hal_mcu_disable_interrupts();
|
||||
if (!background_callback_pending()) {
|
||||
// asm volatile ("dsb 0xF":::"memory");
|
||||
// __wfi();
|
||||
asm volatile ("dsb 0xF" ::: "memory");
|
||||
__wfi();
|
||||
}
|
||||
common_hal_mcu_enable_interrupts();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user