Hello,
I'm porting a project for KL26Z128 from Codewarrior to MCUxpresso IDE. The old project was not created by me, so I was not concerned about some choices made about low level configuration.
Now I'm trying to port the following instructions:
tInterruptStatus = NVIC_ISER;
NVIC_ICER = 0xFFFFFFFF;
[some instructions here]
while(NVIC_ISER != tInterruptStatus)
{
NVIC_ISER = tInterruptStatus;
}
I guess that code executed in [some instructions here] must be executed being sure that no interrupt occurs.
I only found in core_cm0plus.h (and fsl_common.h) utilities to enable/disable one interrupt (IRQ and/or "pending" IRQ at a time), there is no intermediate utility to access directly the whole NVIC_ISER/NVIC_ICER register.
Could I introduce an utility to reproduce the same behaviour from my original source code or I have to proceed one interrupt at a time using the disableIrq/enableIrq available functions?
Or do you have any different advice to manage this?
Thank you very much!