Home
last modified time | relevance | path

Searched refs:u32CNR (Results 1 – 11 of 11) sorted by relevance

/hal_nuvoton-latest/m46x/StdDriver/src/
Dbpwm.c40 uint32_t u32Prescale = 1U, u32CNR = 0xFFFFU; in BPWM_ConfigCaptureChannel() local
115 BPWM_SET_CNR(bpwm, u32ChannelNum, u32CNR); in BPWM_ConfigCaptureChannel()
139 uint32_t u32Prescale = 1U, u32CNR = 0xFFFFU; in BPWM_ConfigOutputChannel() local
175 u32CNR = i; in BPWM_ConfigOutputChannel()
180 i = u32PWMClockSrc / (u32Prescale * u32CNR); in BPWM_ConfigOutputChannel()
189 u32CNR -= 1U; in BPWM_ConfigOutputChannel()
190 BPWM_SET_CNR(bpwm, u32ChannelNum, u32CNR); in BPWM_ConfigOutputChannel()
191 BPWM_SET_CMR(bpwm, u32ChannelNum, u32DutyCycle * (u32CNR + 1UL) / 100UL); in BPWM_ConfigOutputChannel()
Depwm.c136 uint32_t u32Prescale = 1U, u32CNR = 0xFFFFU; in EPWM_ConfigOutputChannel() local
172 u32CNR = i; in EPWM_ConfigOutputChannel()
177 i = u32EPWMClockSrc / (u32Prescale * u32CNR); in EPWM_ConfigOutputChannel()
185 u32CNR -= 1U; in EPWM_ConfigOutputChannel()
186 EPWM_SET_CNR(epwm, u32ChannelNum, u32CNR); in EPWM_ConfigOutputChannel()
187 EPWM_SET_CMR(epwm, u32ChannelNum, u32DutyCycle * (u32CNR + 1U) / 100U); in EPWM_ConfigOutputChannel()
/hal_nuvoton-latest/m48x/StdDriver/src/
Dbpwm.c135 uint32_t u32Prescale = 1U, u32CNR = 0xFFFFU; in BPWM_ConfigOutputChannel() local
171 u32CNR = i; in BPWM_ConfigOutputChannel()
176 i = u32PWMClockSrc / (u32Prescale * u32CNR); in BPWM_ConfigOutputChannel()
185 u32CNR -= 1U; in BPWM_ConfigOutputChannel()
186 BPWM_SET_CNR(bpwm, u32ChannelNum, u32CNR); in BPWM_ConfigOutputChannel()
189 BPWM_SET_CMR(bpwm, u32ChannelNum, u32DutyCycle * (u32CNR + 1UL) / 100UL - 1UL); in BPWM_ConfigOutputChannel()
Depwm.c140 uint32_t u32Prescale = 1U, u32CNR = 0xFFFFU; in EPWM_ConfigOutputChannel() local
176 u32CNR = i; in EPWM_ConfigOutputChannel()
181 i = u32EPWMClockSrc / (u32Prescale * u32CNR); in EPWM_ConfigOutputChannel()
190 u32CNR -= 1U; in EPWM_ConfigOutputChannel()
191 EPWM_SET_CNR(epwm, u32ChannelNum, u32CNR); in EPWM_ConfigOutputChannel()
192 EPWM_SET_CMR(epwm, u32ChannelNum, u32DutyCycle * (u32CNR + 1U) / 100U); in EPWM_ConfigOutputChannel()
/hal_nuvoton-latest/m2l31x/StdDriver/src/
Depwm.c138 uint32_t u32Prescale = 1U, u32CNR = 0xFFFFU; in EPWM_ConfigOutputChannel() local
174 u32CNR = i; in EPWM_ConfigOutputChannel()
179 i = u32EPWMClockSrc / (u32Prescale * u32CNR); in EPWM_ConfigOutputChannel()
188 u32CNR -= 1U; in EPWM_ConfigOutputChannel()
189 EPWM_SET_CNR(epwm, u32ChannelNum, u32CNR); in EPWM_ConfigOutputChannel()
190 EPWM_SET_CMR(epwm, u32ChannelNum, u32DutyCycle * (u32CNR + 1U) / 100U); in EPWM_ConfigOutputChannel()
/hal_nuvoton-latest/m46x/StdDriver/inc/
Dbpwm.h233 #define BPWM_SET_CNR(bpwm, u32ChannelNum, u32CNR) ((bpwm)->PERIOD = (u32CNR)) argument
Depwm.h415 #define EPWM_SET_CNR(epwm, u32ChannelNum, u32CNR) ((epwm)->PERIOD[(u32ChannelNum)] = (u32CNR)) argument
/hal_nuvoton-latest/m48x/StdDriver/inc/
Dbpwm.h233 #define BPWM_SET_CNR(bpwm, u32ChannelNum, u32CNR) ((bpwm)->PERIOD = (u32CNR)) argument
Depwm.h399 #define EPWM_SET_CNR(epwm, u32ChannelNum, u32CNR) ((epwm)->PERIOD[(u32ChannelNum)] = (u32CNR)) argument
/hal_nuvoton-latest/m2l31x/StdDriver/inc/
Dpwm.h393 #define PWM_SET_CNR(pwm, u32ChannelNum, u32CNR) ((pwm)->PERIOD[((u32ChannelNum>>1)<<1)] = (u32CNR)) argument
Depwm.h407 #define EPWM_SET_CNR(epwm, u32ChannelNum, u32CNR) ((epwm)->PERIOD[(u32ChannelNum)] = (u32CNR)) argument