Searched refs:u32Prescaler (Results 1 – 6 of 6) sorted by relevance
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/src/ |
D | timer_pwm.c | 59 uint32_t u32Prescaler = 0x1000UL, u32Period = 1UL, u32CMP; in TPWM_ConfigOutputFreqAndDuty() local 71 for(u32Prescaler = 1UL; u32Prescaler <= 0x1000UL; u32Prescaler++) in TPWM_ConfigOutputFreqAndDuty() 73 u32Period = (u32PWMClockFreq / u32Prescaler) / u32Frequency; in TPWM_ConfigOutputFreqAndDuty() 82 u32TargetFreq = (u32PWMClockFreq / u32Prescaler) / u32Period; in TPWM_ConfigOutputFreqAndDuty() 103 TPWM_SET_PRESCALER(timer, (u32Prescaler - 1UL)); in TPWM_ConfigOutputFreqAndDuty()
|
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/src/ |
D | timer_pwm.c | 126 uint32_t u32Prescaler = 0x1000UL, u32Period = 1UL, u32CMP, u32MaxCLKPSC = 0x1000UL; in TPWM_ConfigOutputFreqAndDuty() local 147 for(u32Prescaler = 1UL; u32Prescaler <= u32MaxCLKPSC; u32Prescaler++) in TPWM_ConfigOutputFreqAndDuty() 149 u32Period = (u32PWMClockFreq / u32Prescaler) / u32Frequency; in TPWM_ConfigOutputFreqAndDuty() 158 u32TargetFreq = (u32PWMClockFreq / u32Prescaler) / u32Period; in TPWM_ConfigOutputFreqAndDuty() 179 TPWM_SET_PRESCALER(timer, (u32Prescaler - 1UL)); in TPWM_ConfigOutputFreqAndDuty()
|
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/inc/ |
D | bpwm.h | 201 #define BPWM_SET_PRESCALER(bpwm, u32ChannelNum, u32Prescaler) ((bpwm)->CLKPSC = (u32Prescaler)) argument
|
D | epwm.h | 342 …ne EPWM_SET_PRESCALER(epwm, u32ChannelNum, u32Prescaler) ((epwm)->CLKPSC[(u32ChannelNum) >> 1] = (… argument
|
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/inc/ |
D | bpwm.h | 201 #define BPWM_SET_PRESCALER(bpwm, u32ChannelNum, u32Prescaler) ((bpwm)->CLKPSC = (u32Prescaler)) argument
|
D | epwm.h | 351 …ne EPWM_SET_PRESCALER(epwm, u32ChannelNum, u32Prescaler) ((epwm)->CLKPSC[(u32ChannelNum) >> 1] = (… argument
|