My 51822 needs to support some realtime control code that runs for about 75mS. During that time I need to mask all interrupts. With a logic analyzer I can see that my realtime code is getting interrupted every 25mS or so, I guess by the SoftDevice. I tried using CRITICAL_REGION_ENTER/CRITICAL_REGION_EXIT but that does not mask the interrupts.
- How can I mask interrupts so that my realtme code will not be interrupted no matter what the radio is doing?
- Is there a way to do this such that I don't unduly disturb the SoftDevice?
Regards, Bret