Hi,
I am using TWR-K60N512, with PK60DN512Z VMD10 chip and Codewarrior 10.5. Does anybody know how to create a scheduler that runs multiple tasks simultaneously at different intervals with a single timer interrupt using LPTMR/RTC/CMT/PDB, in a baremetal project? I skipped PIT because I used them all for other application.
Thanks.
An array of function pointers, to functions of Run To Completion functions in a state machine format is typical to solve this type of problem.
How to Create Jump Tables via Function Pointer Arrays in C and C++ | Embedded Systems Experts
State Machines for Event-Driven Systems | Embedded Systems Experts