csRTOS a multi-tasking scheduler for the AVR

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

There has been quite a bit of discussion around issues associated with this scheduler, so I thought a separate thread was warranted.

See previous thread:
[url]https://www.avrfreaks.net/index.p...
[/url]

Specific issues were, what does

((u08 (*)(void)) romAdr)(); // call the task to initialize it

mean.

And trying to come up with a more bullet-proof debounce algorithm.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sorry, but what's the purpose of this thread then?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thought it would make it easier for people searching for csRTOS rather than going through the other thread(s).

If inappropriate would the moderator please remove OR can I do it?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I was studying the restoreTask() and saveTask() and I cannot figure out what they do.

Help is appreciated, thanks!

Leo;

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

it might have been better to ask your question in a new thread, than to ask a question in a thread that has had no activity in over 2 years.

What does the documentation say those functions do? What does your gut tell you based on their names? I could tell you, in general, without reading anything more than your question. saveTask() saves a tasks context. restoreTask() restores a tasks context so it can resume execution.

Or do you have a more specific technical question about those functions? If so please elaborate.

Writing code is like having sex.... make one little mistake, and you're supporting it for life.