On startup, the PendSV and SysTick interrupts should be set to the lowest priority. This is so other interrupts will take precedence over them. Meaning some peripheral device's interrupt will be serviced before the PendSV (telling the kernel to context switch) and SysTick (ticking the system timer and checking if the kernel should context switch) interrupts are serviced, since they are not time sensitive tasks.
We'll need to implement the System Handler Priority Register 3 in the SCB (System Control Block). The SCB is currently in the system_control module.
On startup, the PendSV and SysTick interrupts should be set to the lowest priority. This is so other interrupts will take precedence over them. Meaning some peripheral device's interrupt will be serviced before the PendSV (telling the kernel to context switch) and SysTick (ticking the system timer and checking if the kernel should context switch) interrupts are serviced, since they are not time sensitive tasks.
We'll need to implement the
System Handler Priority Register 3in the SCB (System Control Block). The SCB is currently in thesystem_controlmodule.