Lines Matching refs:u32Prescale
45 uint32_t u32Cmpr = 0UL, u32Prescale = 0UL; in TIMER_Open() local
55 u32Prescale = (u32Cmpr >> 24); /* for 24 bits CMPDAT */ in TIMER_Open()
56 if (u32Prescale > 0UL) in TIMER_Open()
57 u32Cmpr = u32Cmpr / (u32Prescale + 1UL); in TIMER_Open()
60 timer->CTL = u32Mode | u32Prescale; in TIMER_Open()
63 return(u32Clk / (u32Cmpr * (u32Prescale + 1UL))); in TIMER_Open()
100 uint32_t u32Prescale = 0UL, u32Delay; in TIMER_Delay() local
132 u32Prescale = 0UL; in TIMER_Delay()
139 u32Prescale = (u32Cmpr >> 24); /* for 24 bits CMPDAT */ in TIMER_Delay()
140 if (u32Prescale > 0UL) in TIMER_Delay()
141 u32Cmpr = u32Cmpr / (u32Prescale + 1UL); in TIMER_Delay()
145 timer->CTL = TIMER_CTL_CNTEN_Msk | TIMER_ONESHOT_MODE | u32Prescale; in TIMER_Delay()
158 u32Delay = (SystemCoreClock / TIMER_GetModuleClock(timer)) * (u32Prescale + 1); in TIMER_Delay()