mirror of
https://github.com/gosticks/RIOT.git
synced 2025-10-16 12:05:37 +00:00
Merge pull request #6505 from PeterKietzmann/backport_fix_cortexm_ints
backport: cpu/cortexm: fixed cortexm_sleep()
This commit is contained in:
commit
669a2b9874
@ -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…
Reference in New Issue
Block a user