CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

CCS RTOS - task disabled by default

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
VanHauser



Joined: 03 Oct 2005
Posts: 88
Location: Ploiesti, Romania

View user's profile Send private message

CCS RTOS - task disabled by default
PostPosted: Sat Feb 03, 2007 4:21 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Sat Feb 03, 2007 4:41 pm     Reply with quote

Can you disable them before calling rtos_run() ?
VanHauser



Joined: 03 Oct 2005
Posts: 88
Location: Ploiesti, Romania

View user's profile Send private message

PostPosted: Sat Feb 03, 2007 6:09 pm     Reply with quote

It has no effect.
VanHauser



Joined: 03 Oct 2005
Posts: 88
Location: Ploiesti, Romania

View user's profile Send private message

PostPosted: Sun Feb 04, 2007 4:27 am     Reply with quote

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







PostPosted: Sun Feb 04, 2007 8:01 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group