Merge pull request #6499 from haukepetersen/fix_stm32l1_hardfaultonisr
cpu/cortexm: disable interrupts before sleeping
This commit is contained in:
commit
40a6664831
@ -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…
x
Reference in New Issue
Block a user