View previous topic :: View next topic |
Author |
Message |
VanHauser
Joined: 03 Oct 2005 Posts: 88 Location: Ploiesti, Romania
|
CCS RTOS - task disabled by default |
Posted: Sat Feb 03, 2007 4:21 pm |
|
|
Is it possible to define a RTOS task that is disabled by default? It should make my life easier than making a workaround. |
|
|
future
Joined: 14 May 2004 Posts: 330
|
|
Posted: Sat Feb 03, 2007 4:41 pm |
|
|
Can you disable them before calling rtos_run() ? |
|
|
VanHauser
Joined: 03 Oct 2005 Posts: 88 Location: Ploiesti, Romania
|
|
Posted: Sat Feb 03, 2007 6:09 pm |
|
|
It has no effect. |
|
|
VanHauser
Joined: 03 Oct 2005 Posts: 88 Location: Ploiesti, Romania
|
|
Posted: Sun Feb 04, 2007 4:27 am |
|
|
After a little digging in the LST file I found out that rtos_disable called before rtos_run indeed sets the disabled flag for my task, but rtos_run later resets everything for all the tasks, so I get no result. Maybe it's better if I report this to CCS. |
|
|
Ttelmah Guest
|
|
Posted: Sun Feb 04, 2007 8:01 am |
|
|
Yes.
I suggest you ask them to consider adding an option to the rtos_run, which defaults to enabled, where it'll enable all tasks (making existing code able to assume the behaviour is unchanged). The disabled alternative, will leave the states of tasks unchanged, allowing it to work as you want. I can see having this as an 'option', being quite useful in some cases.
Best Wishes |
|
|
|