Searched refs:ccrx (Results 1 – 3 of 3) sorted by relevance
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/mbed/targets/hal/rtl8721d/ |
A D | pwmout_api.c | 222 u32 ccrx; in pwmout_write() local 233 ccrx = (u32)(obj->pulse * 40 / (prescaler + 1)) & 0x0000ffff; in pwmout_write() 235 …RTIM_CCRxSet(PWM_TIM[obj->pwm_idx >>BIT_PWM_TIM_IDX_SHIFT], ccrx, obj->pwm_idx & (~BIT_PWM_TIM_IDX… in pwmout_write() 328 u32 ccrx; in pwmout_pulsewidth_us() local 331 ccrx = (u32)(obj->pulse * 40 / (prescaler + 1)) & 0x0000ffff; in pwmout_pulsewidth_us() 332 …RTIM_CCRxSet(PWM_TIM[obj->pwm_idx >>BIT_PWM_TIM_IDX_SHIFT], ccrx, obj->pwm_idx & (~BIT_PWM_TIM_IDX… in pwmout_pulsewidth_us()
|
/AliOS-Things-master/hardware/chip/rtl872xd/aos_driver/pwm/ |
A D | pwm.c | 88 uint32_t arr, tmp, ccrx; in rtl872xd_pwm_out_config() local 137 ccrx = DIV_ROUND_CLOSEST(((uint64_t)(period_ns - pulse_width_ns) * 40), 1000); in rtl872xd_pwm_out_config() 138 ccrx = (ccrx / (prescaler + 1)) & 0x0000ffff; in rtl872xd_pwm_out_config() 139 RTIM_CCRxSet(RTL872xD_PWM_TIM[pwm_tim_idx], ccrx, channel); in rtl872xd_pwm_out_config()
|
/AliOS-Things-master/hardware/chip/rtl872xd/csi_driver/pwm/ |
A D | pwm.c | 84 uint32_t arr, tmp, ccrx; in csi_pwm_out_config() local 133 ccrx = (u32)((period_us - pulse_width_us) * 40 / (csi_prescaler + 1)) & 0x0000ffff; in csi_pwm_out_config() 134 RTIM_CCRxSet(CSI_PWM_TIM[pwm_tim_idx], ccrx, channel); in csi_pwm_out_config()
|
Completed in 6 milliseconds