K60 Mini scheduler with one timer

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

K60 Mini scheduler with one timer

600件の閲覧回数
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 件の賞賛
1 返信

323件の閲覧回数
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 件の賞賛