Lines Matching refs:u32Prescale
42 uint32_t u32Cmpr = 0UL, u32Prescale = 0UL; in TTMR_Open() local
55 u32Prescale = (u32Cmpr >> 24); /* for 24 bits CMPDAT */ in TTMR_Open()
56 if (u32Prescale > 0UL) in TTMR_Open()
57 u32Cmpr = u32Cmpr / (u32Prescale + 1UL); in TTMR_Open()
60 ttmr->CTL = (u32Mode | u32Prescale); in TTMR_Open()
63 return(u32Clk / (u32Cmpr * (u32Prescale + 1UL))); in TTMR_Open()
98 uint32_t u32Prescale = 0UL, u32Delay; in TTMR_Delay() local
129 u32Prescale = 0UL; in TTMR_Delay()
136 u32Prescale = (u32Cmpr >> 24); /* for 24 bits CMPDAT */ in TTMR_Delay()
137 if (u32Prescale > 0UL) in TTMR_Delay()
138 u32Cmpr = u32Cmpr / (u32Prescale + 1UL); in TTMR_Delay()
142 ttmr->CTL = TTMR_CTL_CNTEN_Msk | TTMR_ONESHOT_MODE | u32Prescale; in TTMR_Delay()
155 u32Delay = (SystemCoreClock / TTMR_GetModuleClock(ttmr)) * (u32Prescale + 1); in TTMR_Delay()