AnsweredAssumed Answered

disabling interrupts for a moment

Question asked by xadamus on Mar 14, 2012
Latest reply on Mar 15, 2012 by malund.erik
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