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()
97 uint32_t u32Prescale = 0UL, u32Delay; in TIMER_Delay() local
129 u32Prescale = 0UL; in TIMER_Delay()
136 u32Prescale = (u32Cmpr >> 24); /* for 24 bits CMPDAT */ in TIMER_Delay()
137 if (u32Prescale > 0UL) in TIMER_Delay()
138 u32Cmpr = u32Cmpr / (u32Prescale + 1UL); in TIMER_Delay()
142 timer->CTL = TIMER_CTL_CNTEN_Msk | TIMER_ONESHOT_MODE | u32Prescale; in TIMER_Delay()
154 u32Delay = (SystemCoreClock / TIMER_GetModuleClock(timer)) * (u32Prescale + 1); in TIMER_Delay()