Jump to content
Sign in to follow this  
Carnage

Main Task?

Recommended Posts

I have been using Novo for about a year now (really love it), but I'm wondering about one thing.

In the main task all the example usually use only the yielding function:

	
while (TRUE)
{
Sys_Yield();
}

Could we use the main thread also for another task, say I have 3 task, and I need a new one, so the main would work for a new task.

I'm asking this because I'm starting to get tight on RAM and ROM, but I need a new task, so maybe the main fuction could do that job

Thanks

Edited by Carnage

Share this post


Link to post
Share on other sites

Carnage,

 

In the main task all the example usually use only the yielding function:

	
while (TRUE)
{
Sys_Yield();
}

Could we use the main thread also for another task, say I have 3 task, and I need a new one, so the main would work for a new task.

Yes you can happily put continous polling type code in here. This task can't be put to sleep or wait for any events because it needs to loop around to do the task switching.

 

Regards

Dave

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...