Home
last modified time | relevance | path

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

/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/tpm/
Dfsl_tpm.c249 uint32_t counterMax = TPM_MAX_COUNTER_VALUE(base); in TPM_CalculateCounterClkDiv() local
251 …assert(((srcClock_Hz / 2U) > counterPeriod_Hz) && ((srcClock_Hz / 128U / counterMax) <= counterPer… in TPM_CalculateCounterClkDiv()
255 if ((srcClock_Hz / (1UL << i) / counterMax) < counterPeriod_Hz) in TPM_CalculateCounterClkDiv()
282 uint32_t counterMax = TPM_MAX_COUNTER_VALUE(base); in TPM_SetupSinglePwmChannel() local
316 …if (((chnlParams.dutyCyclePercent == 100U) && (mod == counterMax)) || (chnlParams.dutyCyclePercent… in TPM_SetupSinglePwmChannel()
486 uint32_t counterMax = TPM_MAX_COUNTER_VALUE(base); in TPM_SetupPwm() local
508 if ((mod > counterMax) || (mod == 0U)) in TPM_SetupPwm()
522 if ((mod > (counterMax >> 1U)) || (mod == 0U)) in TPM_SetupPwm()
584 uint32_t counterMax = TPM_MAX_COUNTER_VALUE(base); in TPM_UpdatePwmDutycycle() local
595 mod = base->MOD & counterMax; in TPM_UpdatePwmDutycycle()
[all …]