zephyr/samples/power/power_mgr
David B. Kinder ac74d8b652 license: Replace Apache boilerplate with SPDX tag
Replace the existing Apache 2.0 boilerplate header with an SPDX tag
throughout the zephyr code tree. This patch was generated via a
script run over the master branch.

Also updated doc/porting/application.rst that had a dependency on
line numbers in a literal include.

Manually updated subsys/logging/sys_log.c that had a malformed
header in the original file.  Also cleanup several cases that already
had a SPDX tag and we either got a duplicate or missed updating.

Jira: ZEP-1457

Change-Id: I6131a1d4ee0e58f5b938300c2d2fc77d2e69572c
Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-01-19 03:50:58 +00:00
..
src license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
Makefile samples: tests: remove obsolete KERNEL_TYPE and kernel variables 2016-11-04 15:47:25 -04:00
README.txt samples: power_mgmt: Cleanup and update with new pm interface 2016-11-16 00:20:27 +00:00
prj.conf samples: power_mgmt: Make samples unified kernel based 2016-11-03 14:43:50 -07:00
testcase.ini samples: power_mgmt: Remove platform filtering of testcases 2016-11-16 02:18:27 +00:00

README.txt

Title: Power management demo

Description:

A sample implementation of a power manager app that uses the zephyr
power management infrastructure.

This app will cycle through the various power schemes at every call
to _sys_soc_suspend() hook function.
It will cycle through following states
1. CPU Low Power State
2. Deep Sleep - demonstrates invoking suspend/resume handlers of devices to
save device states and switching to deep sleep state.
3. No-op - no operation and letting kernel do its idle

This application uses Intel Quark SE Microcontroller C1000 board for
the demo. It demonstrates power operations on the x86 and ARC cores in
the board.
--------------------------------------------------------------------------------

Building and Running Project:

    make BOARD=<board>

--------------------------------------------------------------------------------

Troubleshooting:

Problems caused by out-dated project information can be addressed by
issuing one of the following commands then rebuilding the project:

    make clean          # discard results of previous builds
                        # but keep existing configuration info
or
    make pristine       # discard results of previous builds
                        # and restore pre-defined configuration info

--------------------------------------------------------------------------------

***Sample output on x86 core***

Power Management Demo on x86

Application main thread

Low power state entry!

Low power state exit!
Total Elapsed From Suspend To Resume = 131073 RTC Cycles
Wake up event handler

Application main thread

Deep sleep entry!
Wake from Deep Sleep!

Deep sleep exit!
Total Elapsed From Suspend To Resume = 291542 RTC Cycles
Wake up event handler

Application main thread

No PM operations done

Application main thread

Low power state entry!

Low power state exit!

...

***Sample output on ARC core***

Power Management Demo on arc

Application main thread

Low power state entry!

Low power state exit!
Total Elapsed From Suspend To Resume = 131073 RTC Cycles
Wake up event handler

Application main thread

No PM operations done

Application main thread

Low power state entry!

Low power state exit!

...