Question
disabling interrupts for a moment
Posted on March 14, 2012 at 23:48
Hello
I want to disable interrupt while I am putting data to buffer, but I dont want to loss any interrupts during this time - I want them to be autimatically trigged when enable interrupts back. I have found in CMSIS __enable_irq(); and __disable_irq(); static __INLINE void __enable_irq() { __ASM volatile (''cpsie i''); } static __INLINE void __disable_irq() { __ASM volatile (''cpsid i''); } is it works as I want it to work ? Is interrupts that came in period between disable and enable will not be lost? with best regards