1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-16 10:03:50 +01:00

cpu/cortexm: fixed cortexm_sleep()

This commit is contained in:
Hauke Petersen 2017-01-27 12:47:59 +01:00
parent 9f1721ab65
commit 3da9ceb705

View File

@ -105,8 +105,10 @@ static inline void cortexm_sleep(int deep)
} }
/* ensure that all memory accesses have completed and trigger sleeping */ /* ensure that all memory accesses have completed and trigger sleeping */
__disable_irq();
__DSB(); __DSB();
__WFI(); __WFI();
__enable_irq();
} }
/** /**