HPM SDK
HPMicro Software Development Kit
hpm_bcfg_drv.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2022 HPMicro
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef HPM_BCFG_DRV_H
9 #define HPM_BCFG_DRV_H
10 
11 #include "hpm_common.h"
12 #include "hpm_bcfg_regs.h"
13 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
32 static inline void bcfg_vbg_enable_lp_mode(BCFG_Type *ptr)
33 {
35 }
36 
42 static inline void bcfg_vbg_disable_lp_mode(BCFG_Type *ptr)
43 {
45 }
46 
53 {
55 }
56 
63 {
65 }
66 
67 #ifdef __cplusplus
68 }
69 #endif
73 #endif /* HPM_BCFG_DRV_H */
74 
#define BCFG_VBG_CFG_POWER_SAVE_MASK
Definition: hpm_bcfg_regs.h:53
#define BCFG_VBG_CFG_LP_MODE_MASK
Definition: hpm_bcfg_regs.h:41
static void bcfg_vbg_disable_lp_mode(BCFG_Type *ptr)
disable VBAT LP mode
Definition: hpm_bcfg_drv.h:42
static void bcfg_vbg_enable_power_save_mode(BCFG_Type *ptr)
enable power save mode
Definition: hpm_bcfg_drv.h:52
static void bcfg_vbg_enable_lp_mode(BCFG_Type *ptr)
enable VBAT LP mode
Definition: hpm_bcfg_drv.h:32
static void bcfg_vbg_disable_power_save_mode(BCFG_Type *ptr)
disable power save mode
Definition: hpm_bcfg_drv.h:62
Definition: hpm_bcfg_regs.h:12
__RW uint32_t VBG_CFG
Definition: hpm_bcfg_regs.h:13