Home
last modified time | relevance | path

Searched refs:u32Cmpr (Results 1 – 1 of 1) sorted by relevance

/hal_nuvoton-3.4.0/m48x/StdDriver/src/
Dtimer.c44 uint32_t u32Cmpr = 0UL, u32Prescale = 0UL; in TIMER_Open() local
49 u32Cmpr = 2UL; in TIMER_Open()
53 u32Cmpr = u32Clk / u32Freq; in TIMER_Open()
54 u32Prescale = (u32Cmpr >> 24); /* for 24 bits CMPDAT */ in TIMER_Open()
56 u32Cmpr = u32Cmpr / (u32Prescale + 1UL); in TIMER_Open()
60 timer->CMP = u32Cmpr; in TIMER_Open()
62 return(u32Clk / (u32Cmpr * (u32Prescale + 1UL))); in TIMER_Open()
96 uint32_t u32Cmpr, u32NsecPerTick; in TIMER_Delay() local
129 u32Cmpr = (u32Usec * 1000UL) / u32NsecPerTick; in TIMER_Delay()
133 u32Cmpr = u32Usec * (u32Clk / 1000000UL); in TIMER_Delay()
[all …]