K60 Mini scheduler with one timer

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

K60 Mini scheduler with one timer

597 Views
broccolee
Contributor III

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. 

0 Kudos
1 Reply

320 Views
bobpaddock
Senior Contributor III

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 


Task Scheduling with Function Pointers | Beningo Embedded 

0 Kudos