This website requires JavaScript.
Explore
Help
Sign In
OrgZephyr
/
zephyr
mirror of
https://github.com/zephyrproject-rtos/zephyr.git
Watch
1
Star
0
Fork
You've already forked zephyr
0
Code
Issues
Releases
Wiki
Activity
a08e23f68e
zephyr
/
tests
/
lib
/
onoff
/
prj.conf
5 lines
67 B
Plaintext
Raw
Normal View
History
Unescape
Escape
lib: os: onoff: add API for on-off service request and release management There are various situations where it's necessary to support turning devices on or off at runtime, includin power rails, clocks, other peripherals, and binary device power management. The complexity of properly managing multiple consumers of a device in a multithreaded system suggests that a shared implementation is desirable. This commit provides an API that supports managing on-off resources. Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2019-11-30 22:12:09 +08:00
CONFIG_POLL=y
CONFIG_ZTEST=y
tests: lib: move onoff to new ztest API Move test lib/onoff to use new ztest API. Signed-off-by: li biao <biao1x.li@intel.com>
2022-07-12 14:04:28 +08:00
CONFIG_ZTEST_NEW_API=y
lib: onoff: add a config for on-off and build conditionally Do not build this service unconditionally. Partial fix of #50654 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-09-27 00:53:00 +08:00
CONFIG_ONOFF=y