• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (C) 2022 Beken Corporation
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //     http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #pragma once
16 
17 #include <soc/soc.h>
18 #include <components/log.h>
19 #include "sys_types.h"
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 void aon_pmu_drv_init();
26 
27 void aon_pmu_drv_set_sleep_parameters(uint32_t value);
28 
29 void aon_pmu_drv_clear_wakeup_source(wakeup_source_t value);
30 
31 void aon_pmu_drv_set_wakeup_source(wakeup_source_t value);
32 
33 uint32_t aon_pmu_drv_get_adc_cal(void);
34 
35 void aon_pmu_drv_touch_select(uint32_t value);
36 
37 uint32_t aon_pmu_drv_get_cap_cal(void);
38 
39 uint32_t aon_pmu_drv_get_touch_state(void);
40 
41 void aon_pmu_drv_touch_int_enable(uint32_t enable);
42 
43 void aon_pmu_drv_touch_int_disable(uint32_t disable);
44 
45 uint32_t aon_pmu_drv_get_touch_int_status(void);
46 
47 void aon_pmu_drv_clear_touch_int(uint32_t value);
48 void aon_pmu_drv_reg_set(pmu_reg_e reg, uint32_t value);
49 uint32_t aon_pmu_drv_reg_get(pmu_reg_e reg);
50 void aon_pmu_drv_wdt_rst_dev_enable(void);
51 void aon_pmu_drv_lpo_src_set(uint32_t lpo_src);
52 uint32_t aon_pmu_drv_lpo_src_get();
53 uint32_t aon_pmu_drv_bias_cal_get();
54 
55 #ifdef __cplusplus
56 }
57 #endif
58