| /hal_nuvoton-latest/m46x/StdDriver/src/ |
| D | bpwm.c | 40 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()
|
| D | epwm.c | 136 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/ |
| D | bpwm.c | 135 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()
|
| D | epwm.c | 140 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/ |
| D | epwm.c | 138 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/ |
| D | bpwm.h | 233 #define BPWM_SET_CNR(bpwm, u32ChannelNum, u32CNR) ((bpwm)->PERIOD = (u32CNR)) argument
|
| D | epwm.h | 415 #define EPWM_SET_CNR(epwm, u32ChannelNum, u32CNR) ((epwm)->PERIOD[(u32ChannelNum)] = (u32CNR)) argument
|
| /hal_nuvoton-latest/m48x/StdDriver/inc/ |
| D | bpwm.h | 233 #define BPWM_SET_CNR(bpwm, u32ChannelNum, u32CNR) ((bpwm)->PERIOD = (u32CNR)) argument
|
| D | epwm.h | 399 #define EPWM_SET_CNR(epwm, u32ChannelNum, u32CNR) ((epwm)->PERIOD[(u32ChannelNum)] = (u32CNR)) argument
|
| /hal_nuvoton-latest/m2l31x/StdDriver/inc/ |
| D | pwm.h | 393 #define PWM_SET_CNR(pwm, u32ChannelNum, u32CNR) ((pwm)->PERIOD[((u32ChannelNum>>1)<<1)] = (u32CNR)) argument
|
| D | epwm.h | 407 #define EPWM_SET_CNR(epwm, u32ChannelNum, u32CNR) ((epwm)->PERIOD[(u32ChannelNum)] = (u32CNR)) argument
|