https://www.embedded.com/how-to-calculate-cpu-utilization/
-
Simple example of a background loop. int main( void ) { SetupInterrupts(); InitializeModules(); …
-
Background loop with an “observation” variable. extern INT8U ping; while(1) /* endless loop – spin in …
-
Background loop with a loop counter. extern INT16U bg_loop_cnt = 0; int main( void ) { …
-
Additional logic added to a period task for CPU use calculation. /* predetermined average Idle Task …