Tool/software: TI-RTOS
Hi,
I've created a task in app.cfg, like this:
Program.global.Task_HeartBeat = Task.create("&HeartBeatFxn", task1Params);
I'd like to stop and start this task with a button so have the following questions:
1) What's the best way to stop and start this task, should I block / unblock it OR set its priority to -1 and the back to some priority above zero to enable it OR something else?
2) How do I get a reference to this task in order to stop and start it? Since it's created in the app.cfg I'm not sure how I can refer to this task in the code that's triggered by my button press.
Thanks in advance for your help!
Cheers,
Tim