What is Basepri?
Basepri is a register found in ARM Cortex processor cores that controls the priority level of exception handlers. It plays a key role in determining the priority of different exceptions and interrupts in the ARM architecture. In a nutshell, Basepri allows software to dynamically raise the priority of exception handlers to prevent lower priority exceptions