Home
last modified time | relevance | path

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

/lk-master/platform/stm32f4xx/
A Duart.c261 uint32_t intdiv = 0; in uart_init_port() local
274 intdiv = ((25 * apbclk) / (2 * (baud))); in uart_init_port()
276 intdiv = ((25 * apbclk) / (4 * (baud))); in uart_init_port()
278 treg = (intdiv / 100) << 4; in uart_init_port()
280 fracdiv = intdiv - (100 * (treg >> 4)); in uart_init_port()

Completed in 3 milliseconds