Home
last modified time | relevance | path

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

/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/tpm/
Dfsl_tpm.c281 uint32_t cnv; in TPM_SetupSinglePwmChannel() local
352 cnv = 0; in TPM_SetupSinglePwmChannel()
357 cnv = mod + 1U; in TPM_SetupSinglePwmChannel()
362 cnv = (mod * chnlParams.dutyCyclePercent) / 100U; in TPM_SetupSinglePwmChannel()
417 base->CONTROLS[chnlId].CnV = cnvFirstEdge + cnv; in TPM_SetupSinglePwmChannel()
422 } while ((cnvFirstEdge + cnv) != base->CONTROLS[chnlId].CnV); in TPM_SetupSinglePwmChannel()
430 cnv = mod + 1U; in TPM_SetupSinglePwmChannel()
434 cnv = (mod * chnlParams.dutyCyclePercent) / 100U; in TPM_SetupSinglePwmChannel()
439 …assert(!(mode == kTPM_EdgeAlignedPwm && cnv == 1U && (base->SC & TPM_SC_PS_MASK) == kTPM_Prescale_… in TPM_SetupSinglePwmChannel()
447 base->CONTROLS[chnlId].CnV = cnv; in TPM_SetupSinglePwmChannel()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/ftm/
Dfsl_ftm.c434 uint32_t cnv, cnvFirstEdge; in FTM_SetupPwm() local
481 cnv = mod + 1U; in FTM_SetupPwm()
485 cnv = (mod * chnlParams->dutyCyclePercent) / 100U; in FTM_SetupPwm()
503 base->CONTROLS[chnlParams->chnlNumber].CnV = cnv; in FTM_SetupPwm()
523 cnvFirstEdge = (mod > cnv) ? ((mod - cnv) / 2U) : 0U; in FTM_SetupPwm()
562 base->CONTROLS[(((uint32_t)chnlParams->chnlNumber) * 2U) + 1U].CnV = cnvFirstEdge + cnv; in FTM_SetupPwm()
599 uint32_t cnv, cnvFirstEdge = 0, mod; in FTM_UpdatePwmDutycycle() local
617 cnv = mod + 1U; in FTM_UpdatePwmDutycycle()
621 cnv = (mod * dutyCyclePercent) / 100U; in FTM_UpdatePwmDutycycle()
626 base->CONTROLS[chnlNumber].CnV = cnv; in FTM_UpdatePwmDutycycle()
[all …]