Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] Re: Low power multithreaded OS suggestion?

2005-10-06 by FreeRTOS Info

> Thanks. Looks mostly like what I need. I'd like to make the OS to
> enter a slower tick rate when there's no more processing to do, but
> this change looks trivial if all other issues are taken care of.

Changing the tick rate at run time is only trivial if you do not have very
strict timing requirements.

For example, if one of your tasks wants to execute exactly every 5ms, it can
use the xTaskDelayUntil() API call.  This will calculate the tick count (the
number of times the tick ISR has executed) at which the task should next
execute.  If you change the tick frequency after this then you have a
problem.

If all your blocking calls block for an event (eg serial data rx), as
opposed to a time, then it is not a problem.  Also if your timing
requirements are less strict then also it might not be a problem.  So this
is really application dependent.

Regards,
Richard.


http://www.FreeRTOS.org

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.