Lines Matching refs:counterMax
249 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()
597 if (((dutyCyclePercent == 100U) && (mod == counterMax)) || (dutyCyclePercent > 100U)) in TPM_UpdatePwmDutycycle()
619 if ((base->CONTROLS[chnlId * 2U].CnV & counterMax) > mod) in TPM_UpdatePwmDutycycle()
625 cnvFirstEdge = base->CONTROLS[chnlId * 2U].CnV & counterMax; in TPM_UpdatePwmDutycycle()