Home
last modified time | relevance | path

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

/hal_nxp-2.7.6/mcux/drivers/imx/
Dfsl_pwm.c284 uint16_t pulseCnt = 0, pwmHighPulse = 0; in PWM_SetupPwm() local
302 pwmHighPulse = (pulseCnt * chnlParams->dutyCyclePercent) / 100U; in PWM_SetupPwm()
324 base->SM[subModule].VAL2 = PWM_GetComplementU16(pwmHighPulse / 2U); in PWM_SetupPwm()
325 base->SM[subModule].VAL3 = (pwmHighPulse / 2U); in PWM_SetupPwm()
329 base->SM[subModule].VAL4 = PWM_GetComplementU16(pwmHighPulse / 2U); in PWM_SetupPwm()
330 base->SM[subModule].VAL5 = (pwmHighPulse / 2U); in PWM_SetupPwm()
349 base->SM[subModule].VAL2 = ((pulseCnt - pwmHighPulse) / 2U); in PWM_SetupPwm()
350 base->SM[subModule].VAL3 = ((pulseCnt + pwmHighPulse) / 2U); in PWM_SetupPwm()
354 base->SM[subModule].VAL4 = ((pulseCnt - pwmHighPulse) / 2U); in PWM_SetupPwm()
355 base->SM[subModule].VAL5 = ((pulseCnt + pwmHighPulse) / 2U); in PWM_SetupPwm()
[all …]
/hal_nxp-2.7.6/mcux/drivers/kinetis/
Dfsl_pwm.c284 uint16_t pulseCnt = 0, pwmHighPulse = 0; in PWM_SetupPwm() local
302 pwmHighPulse = (pulseCnt * chnlParams->dutyCyclePercent) / 100U; in PWM_SetupPwm()
324 base->SM[subModule].VAL2 = PWM_GetComplementU16(pwmHighPulse / 2U); in PWM_SetupPwm()
325 base->SM[subModule].VAL3 = (pwmHighPulse / 2U); in PWM_SetupPwm()
329 base->SM[subModule].VAL4 = PWM_GetComplementU16(pwmHighPulse / 2U); in PWM_SetupPwm()
330 base->SM[subModule].VAL5 = (pwmHighPulse / 2U); in PWM_SetupPwm()
349 base->SM[subModule].VAL2 = ((pulseCnt - pwmHighPulse) / 2U); in PWM_SetupPwm()
350 base->SM[subModule].VAL3 = ((pulseCnt + pwmHighPulse) / 2U); in PWM_SetupPwm()
354 base->SM[subModule].VAL4 = ((pulseCnt - pwmHighPulse) / 2U); in PWM_SetupPwm()
355 base->SM[subModule].VAL5 = ((pulseCnt + pwmHighPulse) / 2U); in PWM_SetupPwm()
[all …]