mcu_hi3321_watch/drivers/adapter/ohos_3.2/lowpower.c
2025-05-26 20:15:20 +08:00

26 lines
704 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* Copyright (c) @CompanyNameMagicTag 2023-2023. All rights reserved. \n
*
* Description: Provides lowpower driver source \n
* Author: @CompanyNameTag \n
* History: \n
* 2023-10-18 Create file. \n
*/
#include "common_def.h"
#include "iot_errno.h"
#include "lowpower.h"
unsigned int LpcInit(void)
{
// uapi_pm_init uapi_clocks_init uapi_pm_vote_init已经在系统启动时适配
return IOT_SUCCESS;
}
unsigned int LpcSetType(LpcType type)
{
unused(type);
// 低功耗睡眠模式是各业务投票决定,不能简单的设置睡眠状态
// 睡眠投票接口uapi_pm_add_sleep_veto
// 睡眠去投票接口uapi_pm_remove_sleep_veto
return IOT_SUCCESS;
}