I'm trying to mask out / disable all interrupts at certain levels. I believe that the core register called BASEPRI is made for this. However, I have seen two different versions of ASM code to modify the register, but none of them works. The function __set_basepri() exists, but how do I include it? I have tried to copy the code, but that doesn't work.
Does anyone have a working BASEPRI modifying ASM code?
Running on SAM L10, but this should not be a big deal.