HPM SDK
HPMicro Software Development Kit
hpm_pcfg_drv.c File Reference
#include "hpm_pcfg_drv.h"
#include "hpm_soc_feature.h"

Macros

#define PCFG_CURRENT_MEASUREMENT_STEP   (50U)
 
#define HPM_PMU_DRV_RETRY_COUNT   (5000U)
 
#define PCFG_RC24M_FREQ   (24000000UL)
 

Functions

hpm_stat_t pcfg_ldo1p1_set_voltage (PCFG_Type *ptr, uint16_t mv)
 
hpm_stat_t pcfg_ldo2p5_set_voltage (PCFG_Type *ptr, uint16_t mv)
 
uint16_t pcfg_dcdc_get_current_level (PCFG_Type *ptr)
 
hpm_stat_t pcfg_dcdc_set_voltage (PCFG_Type *ptr, uint16_t mv)
 
void pcfg_irc24m_config_track (PCFG_Type *ptr, pcfg_irc24m_config_t *config)
 config irc24m track More...
 
hpm_stat_t pcfg_dcdc_set_lpmode_voltage (PCFG_Type *ptr, uint16_t mv)
 

Macro Definition Documentation

◆ HPM_PMU_DRV_RETRY_COUNT

#define HPM_PMU_DRV_RETRY_COUNT   (5000U)

◆ PCFG_CURRENT_MEASUREMENT_STEP

#define PCFG_CURRENT_MEASUREMENT_STEP   (50U)

◆ PCFG_RC24M_FREQ

#define PCFG_RC24M_FREQ   (24000000UL)