Skip to content
Snippets Groups Projects
Commit 3da9ceb7 authored by Hauke Petersen's avatar Hauke Petersen
Browse files

cpu/cortexm: fixed cortexm_sleep()

parent 9f1721ab
No related branches found
No related tags found
No related merge requests found
...@@ -105,8 +105,10 @@ static inline void cortexm_sleep(int deep) ...@@ -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();
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment