FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [May 2005 Threads] at91sam7s64 Sleep modePosted by Nobody/Anonymous on May 12, 2005 Hi, I would like to do some power saving in my software, however I'm not sure what's the best way to make it work in FreeRTOS. My software should work in 100ms duration, then sleep for 1second, wake up and repeat the procedure. Do you have suggestions on how I should implement it?
RE: at91sam7s64 Sleep modePosted by Nobody/Anonymous on May 12, 2005 You can place the processor into power save mode in the idle task.
If you are using a version prior to 3 then you have to modify the code in prvIdleTask() within tasks.c. If you are using V3 then you can use the idle hook facility (http://www.freertos.org/a00015.html#IdleHook).
When you place the processor into sleep mode you have to choose a mode that allows the timer to continue running, otherwise you will never wake! Also the timer must be able to bring the processor out of sleep mode.
The lower the tick rate the lower the power consumption will be.
If the idle task puts the processor to sleep then the processor will wake on the RTOS tick. If this makes a task ready to run the task will run - if not the idle task will immediately put the processor back to sleep.
Hope this helps.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|