CAF: Power manager keep alive module for buttons
The Power manager keep alive module for buttons of the Common Application Framework (CAF) is responsible for generating keep_alive_event
on any configured button press.
The keep_alive_event
is used by the CAF power manager module to reset the power-down counter when it is managing the overall operating system power state.
Configuration
To use the module, you must enable the following Kconfig options:
CONFIG_CAF_BUTTONS_PM_KEEP_ALIVE
- This option enables the Power manager keep alive module for buttons. It is enabled by default ifCONFIG_CAF_POWER_MANAGER
andCONFIG_CAF_BUTTONS
are enabled.CONFIG_CAF_BUTTONS
- This option enables the CAF buttons module.CONFIG_CAF_POWER_MANAGER
- This option enables the CAF power manager module and it is required byCONFIG_CAF_BUTTONS_PM_KEEP_ALIVE
.
Implementation details
The module reacts to button_event
and generates keep_alive_event
for the CAF power manager if any configured button is pressed.
See CAF buttons module documentation page for information about how to configure buttons and the CAF power manager module documentation page for more information about the power state management.