Energy Efficient Design

Configuring cocoOS

Energy Efficient Design

Postby whywhy » Sun Dec 16, 2012 4:04 pm

I am coding for battery powered device.
How to make system sleep most of the time?

One idea would be:
put a sleep instruction in a lowest priority task.
is it feasible with cocoOS?
Posts: 6
Joined: Sun Dec 16, 2012 3:50 pm

Re: Energy Efficient Design

Postby peter » Tue Dec 18, 2012 7:54 am

cocoOS can manage this for you.
When idle, the scheduler checks for any task waiting for execution. If no task wants to run, a call is made to os_cbkSleep() where you could put your sleep instruction.
For time keeping the MCU must wake up every tick to adjust task timers.
Site Admin
Posts: 24
Joined: Wed Mar 07, 2012 9:32 am

Return to Configuration

Who is online

Users browsing this forum: No registered users and 1 guest