mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-15 01:23:49 +01:00
cpu/cortexm: fixed cortexm_sleep()
This commit is contained in:
parent
9f1721ab65
commit
3da9ceb705
@ -105,8 +105,10 @@ static inline void cortexm_sleep(int deep)
|
||||
}
|
||||
|
||||
/* ensure that all memory accesses have completed and trigger sleeping */
|
||||
__disable_irq();
|
||||
__DSB();
|
||||
__WFI();
|
||||
__enable_irq();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user