I’m writing an application using FreeRTOS on an Atmel ATmega640. One of the design goals is to allow the device to run off a NiMH battery pack for a couple of weeks at a time before it needs recharging.
My plan is to modify the timer tick rate when running on batteries so that tasks that need to be performed regularly can still be run. I would then put the processor in one of the low power modes until the next timer tick wakes the core up again.
Would this scheme work or are there points I need to watch out for?
Are there any plans to put some power management facilities into the RTOS?