1
0
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:
Alexandre Abadie 2018-02-12 16:16:09 +01:00 committed by GitHub
commit f5da8c2cf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}