18 lines
329 B
C
18 lines
329 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*
|
|
* 更新“保持唤醒”状态。true 阻止电源保持 GPIO 进入关断态,false 允许恢复
|
|
* 低功耗状态;调用方不应直接操作对应 GPIO。
|
|
*/
|
|
void power_manager_set_keep_awake(bool keep_awake);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|