Hi,
I have to protect part of my code against interruption (i.e update sw_fifo's pointers).
I see lots of words on web, goods and bads, but at least i need to have some kind of synthesis.
i see the following :
#define ENABLE_INTERRUPTS() __asm volatile ("cpsie i" : : : "memory");
#define DISABLE_INTERRUPTS() __asm volatile ("cpsid i" : : : "memory");
Some time with couter... i feel ok with this part.
Some time i also see dsb and isb usage right after disabling interrupt. I think it's more related to S32K14x... Can you confirm me that i don't need to do use these instructions?
Both usage can be found on Project exemple FreeRtos_s32k116 and flexcan_encrypted_s32k116
Thanks in advance for your clarifications