9 unsigned int refclk,
unsigned int oversample)
11 return (1 + (2 * refclk) / (baudrate * oversample)) / 2;
14 #if !CONFIG(UART_OVERRIDE_INPUT_CLOCK_DIVIDER)
31 #if !CONFIG(UART_OVERRIDE_REFCLK)
61 for (i = 2; i < 10; i++) {
unsigned int get_uart_baudrate(void)
void uart_bitbang_tx_byte(unsigned char data, void(*set_tx)(int line_state))
unsigned int uart_input_clock_divider(void)
unsigned int uart_platform_refclk(void)
unsigned int uart_baudrate_divisor(unsigned int baudrate, unsigned int refclk, unsigned int oversample)
static void stopwatch_init(struct stopwatch *sw)
static void stopwatch_tick(struct stopwatch *sw)
static long stopwatch_duration_usecs(struct stopwatch *sw)
static void set_tx(int line_state)