lock_lfvx/bk_idk/middleware/driver/pmu/aon_pmu_driver.h
2025-10-10 16:07:00 +08:00

60 lines
1.7 KiB
C

// Copyright 2020-2021 Beken
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#include <soc/soc.h>
#include <components/log.h>
#include "sys_types.h"
#ifdef __cplusplus
extern "C" {
#endif
void aon_pmu_drv_init();
void aon_pmu_drv_set_sleep_parameters(uint32_t value);
void aon_pmu_drv_clear_wakeup_source(wakeup_source_t value);
void aon_pmu_drv_set_wakeup_source(wakeup_source_t value);
uint32_t aon_pmu_drv_get_adc_cal(void);
void aon_pmu_drv_touch_select(uint32_t value);
uint32_t aon_pmu_drv_get_cap_cal(void);
uint32_t aon_pmu_drv_get_touch_state(void);
void aon_pmu_drv_touch_int_enable(uint32_t enable);
void aon_pmu_drv_touch_int_disable(uint32_t disable);
uint32_t aon_pmu_drv_get_touch_int_status(void);
void aon_pmu_drv_clear_touch_int(uint32_t value);
void aon_pmu_drv_reg_set(pmu_reg_e reg, uint32_t value);
uint32_t aon_pmu_drv_reg_get(pmu_reg_e reg);
void aon_pmu_drv_wdt_rst_dev_enable(void);
void aon_pmu_drv_wdt_change_not_rosc_clk(void);
void aon_pmu_drv_lpo_src_extern32k_enable(void);
void aon_pmu_drv_lpo_src_set(uint32_t lpo_src);
uint32_t aon_pmu_drv_lpo_src_get();
uint32_t aon_pmu_drv_bias_cal_get();
#ifdef __cplusplus
}
#endif