Skip to content
Snippets Groups Projects
Commit 40a66648 authored by Peter Kietzmann's avatar Peter Kietzmann Committed by GitHub
Browse files

Merge pull request #6499 from haukepetersen/fix_stm32l1_hardfaultonisr

cpu/cortexm: disable interrupts before sleeping
parents 198cbd33 3da9ceb7
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
/**
......
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