17.4.5 PendSV
PendSV is an internal interrupt, typically used to force a context switch
in software. Its handler is PendSV_Handler
with IRQ number
PendSV_IRQn
. It is always enabled and has configurable priority,
normally configured to be at the lowest priority.
You can trigger a PendSV interrupt with the following code.
SCB->ICSR = SCB_ICSR_PENDSVSET_Msk;