void os_sched_ctx_sw_hook(struct os_task *next_t)
Performs task accounting when context switching.
This function must be called from the architecture specific context switching routine os_arch_ctx_sw() before resuming execution of the running task.
N/A
N/A
void os_arch_ctx_sw(struct os_task *t) { os_sched_ctx_sw_hook(t); /* Set PendSV interrupt pending bit to force context switch */ SCB->ICSR = SCB_ICSR_PENDSVSET_Msk; }