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.
My next thing would be to investigate how to "hook" the GNU STDIO
libraries into this scheme.
Guille
--- In lpc2000@yahoogroups.com, "FreeRTOS Info" <nospam@F...> wrote:
> >Thanks, Gilles. Do you mean that free RTOS already handles entering
> >the processor's idle mode off-the-box? Or should I mod it in order
to
> >achieve that? Does the 2106 port applies to 2138 without needing
any
> >modifications?
>
>
> The idle task will automatically execute when there are no user
tasks able
> to do so. If you want low power, then the idle task can place the
processor
> into a sleep mode - this way the processor will automatically power
save
> whenever there is no processing to do.
>
> The idle task is then nothing more than:
>
> for( ;; )
> {
> sleep_now(); // user defined.
> }
>
>
> Pre-emptive schedulers such as FreeRTOS configure a timer to
generate a
> periodic 'tick' interrupt. Each tick interrupt will wake the
processor, so
> the faster the tick frequency the more power the processor will use.
>
> The demo serial port drivers included in the FreeRTOS download use
queues to
> pass serial port data from interrupt routines to user tasks. The
interrupt
> is fast as all it does is read the character from the register and
place it
> into the queue. The task that processes the data can block on the
queue
> waiting for data to become available, so does not use any more
processing
> power than necessary.
>
> Regards,
> Richard.
>
>
> http://www.FreeRTOS.orgMessage
Re: Low power multithreaded OS suggestion?
2005-10-06 by Guillermo Prandi
Attachments
- No local attachments were found for this message.