??? 12/16/04 13:46 Read: times |
#83236 - Code inside Task () Responding to: ???'s previous message |
HI Erik,
j use a counter decremented in the ISR of a hardware timer. When the counter reaches zero a flag is set. The task look the flag and know it must execute. Code inside tasks look like : void Task (void) { // if timer still running exit if (timer1 == TIM_RUNNING) return; // timer expired reload counter and restart time1 = TIME; timer1 = TIM_RUNNING; // now begins the code to be executed... ... ... } Massimo. |
Topic | Author | Date |
Making embedded programs | 01/01/70 00:00 | |
State machine... | 01/01/70 00:00 | |
look here | 01/01/70 00:00 | |
Variations on a theme | 01/01/70 00:00 | |
HUH ? | 01/01/70 00:00 | |
Code inside Task ()![]() | 01/01/70 00:00 |