Lines Matching refs:u32Prescale
44 uint32_t u32Cmpr = 0UL, u32Prescale = 0UL; in LPTMR_Open() local
57 u32Prescale = (u32Cmpr >> 24); /* for 24 bits CMPDAT */ in LPTMR_Open()
58 if (u32Prescale > 0UL) in LPTMR_Open()
59 u32Cmpr = u32Cmpr / (u32Prescale + 1UL); in LPTMR_Open()
62 lptmr->CTL = (u32Mode | u32Prescale); in LPTMR_Open()
65 return(u32Clk / (u32Cmpr * (u32Prescale + 1UL))); in LPTMR_Open()
101 uint32_t u32Prescale = 0UL, u32Delay; in LPTMR_Delay() local
133 u32Prescale = 0UL; in LPTMR_Delay()
140 u32Prescale = (u32Cmpr >> 24); /* for 24 bits CMPDAT */ in LPTMR_Delay()
141 if (u32Prescale > 0UL) in LPTMR_Delay()
142 u32Cmpr = u32Cmpr / (u32Prescale + 1UL); in LPTMR_Delay()
146 lptmr->CTL = LPTMR_CTL_CNTEN_Msk | LPTMR_ONESHOT_MODE | u32Prescale; in LPTMR_Delay()
159 u32Delay = (SystemCoreClock / LPTMR_GetModuleClock(lptmr)) * (u32Prescale + 1); in LPTMR_Delay()