Home
last modified time | relevance | path

Searched refs:pstcChannelCfg (Results 1 – 2 of 2) sorted by relevance

/bsp/hc32l196/Libraries/HC32L196_StdPeriph_Driver/src/
A Dhc32l196_vc.c228 void Vc_Init(stc_vc_channel_cfg_t *pstcChannelCfg) in Vc_Init() argument
230 if (VcChannel0 == pstcChannelCfg->enVcChannel) in Vc_Init()
235 M0P_VC->VC0_CR_f.P_SEL = pstcChannelCfg->enVcInPin_P; in Vc_Init()
238 M0P_VC->VC0_OUT_CFG = 1<<pstcChannelCfg->enVcOutCfg; in Vc_Init()
240 else if (VcChannel1 == pstcChannelCfg->enVcChannel) in Vc_Init()
248 M0P_VC->VC1_OUT_CFG = 1<<pstcChannelCfg->enVcOutCfg; in Vc_Init()
250 else if(VcChannel2 == pstcChannelCfg->enVcChannel) in Vc_Init()
252 M0P_VC->CR_f.VC2_HYS_SEL = pstcChannelCfg->enVcCmpDly; in Vc_Init()
255 M0P_VC->VC2_CR_f.P_SEL = pstcChannelCfg->enVcInPin_P; in Vc_Init()
256 M0P_VC->VC2_CR_f.N_SEL = pstcChannelCfg->enVcInPin_N; in Vc_Init()
[all …]
/bsp/hc32l196/Libraries/HC32L196_StdPeriph_Driver/inc/
A Dhc32l196_vc.h286 extern void Vc_Init(stc_vc_channel_cfg_t *pstcChannelCfg);

Completed in 4 milliseconds