mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #8518 from kYc0o/stm32l1_temp_fix
cpu/cortexm: add __NOP(); after __WFI(); for stm32l152 to avoid hardfault
This commit is contained in:
commit
f5da8c2cf5
@ -107,6 +107,10 @@ static inline void cortexm_sleep(int deep)
|
||||
unsigned state = irq_disable();
|
||||
__DSB();
|
||||
__WFI();
|
||||
#if defined(CPU_MODEL_STM32L152RE)
|
||||
/* STM32L152RE crashes without this __NOP(). See #8518. */
|
||||
__NOP();
|
||||
#endif
|
||||
irq_restore(state);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user