cpu/cortexm_common: use irq_disable/irq_restore
This commit is contained in:
parent
2170f47a66
commit
dd49f22532
@ -96,10 +96,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();
|
unsigned state = irq_disable();
|
||||||
__DSB();
|
__DSB();
|
||||||
__WFI();
|
__WFI();
|
||||||
__enable_irq();
|
irq_restore(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user