Lines Matching refs:u32Prescale
44 uint32_t u32Cmpr = 0UL, u32Prescale = 0UL; in TIMER_Open() local
54 u32Prescale = (u32Cmpr >> 24); /* for 24 bits CMPDAT */ in TIMER_Open()
55 if (u32Prescale > 0UL) in TIMER_Open()
56 u32Cmpr = u32Cmpr / (u32Prescale + 1UL); in TIMER_Open()
59 timer->CTL = u32Mode | u32Prescale; in TIMER_Open()
62 return(u32Clk / (u32Cmpr * (u32Prescale + 1UL))); in TIMER_Open()
95 uint32_t u32Prescale = 0UL, delay = (SystemCoreClock / u32Clk) + 1UL; in TIMER_Delay() local
127 u32Prescale = 0UL; in TIMER_Delay()
134 u32Prescale = (u32Cmpr >> 24); /* for 24 bits CMPDAT */ in TIMER_Delay()
135 if (u32Prescale > 0UL) in TIMER_Delay()
136 u32Cmpr = u32Cmpr / (u32Prescale + 1UL); in TIMER_Delay()
140 timer->CTL = TIMER_CTL_CNTEN_Msk | TIMER_ONESHOT_MODE | u32Prescale; in TIMER_Delay()