Merge pull request #5357 from dhalbert/revert-5341
Revert #5341. Does not work on power-cycle.
This commit is contained in:
commit
42523a1832
|
@ -238,8 +238,9 @@ void port_interrupt_after_ticks(uint32_t ticks) {
|
||||||
void port_idle_until_interrupt(void) {
|
void port_idle_until_interrupt(void) {
|
||||||
common_hal_mcu_disable_interrupts();
|
common_hal_mcu_disable_interrupts();
|
||||||
if (!background_callback_pending()) {
|
if (!background_callback_pending()) {
|
||||||
asm volatile ("dsb 0xF" ::: "memory");
|
// TODO: Does not work when board is power-cycled.
|
||||||
__wfi();
|
// asm volatile ("dsb 0xF" ::: "memory");
|
||||||
|
// __wfi();
|
||||||
}
|
}
|
||||||
common_hal_mcu_enable_interrupts();
|
common_hal_mcu_enable_interrupts();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue