Home
last modified time | relevance | path

Searched refs:pulseCnt (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
296 pulseCnt = (uint16_t)(pwmClock / pwmFreq_Hz); in PWM_SetupPwm()
302 pwmHighPulse = (pulseCnt * chnlParams->dutyCyclePercent) / 100U; in PWM_SetupPwm()
311 modulo = (pulseCnt >> 1U); in PWM_SetupPwm()
340 base->SM[subModule].VAL0 = (pulseCnt / 2U); in PWM_SetupPwm()
343 base->SM[subModule].VAL1 = pulseCnt - 1U; 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
296 pulseCnt = (uint16_t)(pwmClock / pwmFreq_Hz); in PWM_SetupPwm()
302 pwmHighPulse = (pulseCnt * chnlParams->dutyCyclePercent) / 100U; in PWM_SetupPwm()
311 modulo = (pulseCnt >> 1U); in PWM_SetupPwm()
340 base->SM[subModule].VAL0 = (pulseCnt / 2U); in PWM_SetupPwm()
343 base->SM[subModule].VAL1 = pulseCnt - 1U; 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 …]