mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
power/PM: add domain inner update power state feature
In some scenarios, We need to update state information internally. Instead of use idle-task to drive the checkstate and change state function. Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
This commit is contained in:
@@ -55,6 +55,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <queue.h>
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
@@ -312,6 +313,23 @@ extern "C"
|
||||
|
||||
void pm_initialize(void);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: pm_auto_update
|
||||
*
|
||||
* Description:
|
||||
* This function set the domain with assign update mode.
|
||||
*
|
||||
* Input Parameters:
|
||||
* domain - The PM domain to check
|
||||
* auto_update - The PM domain auto update or not
|
||||
*
|
||||
* Returned Value:
|
||||
* None.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
void pm_auto_update(int domain, bool auto_update);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: pm_register
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user