URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/trunk
- from Rev 556 to Rev 557
- ↔ Reverse comparison
Rev 556 → Rev 557
/gnu-src/newlib-1.18.0/libgloss/or32/uart.c
85,7 → 85,7
UREG8 (UART_LCR) = UART_LCR_WLEN8 & ~(UART_LCR_STOP | UART_LCR_PARITY); |
|
/* Set baud rate */ |
divisor = _board_clk_freq / (16 * _board_uart_baud); |
divisor = (_board_clk_freq / _board_uart_baud + 8) / 16; |
|
UREG8 (UART_LCR) |= UART_LCR_DLAB; |
UREG8 (UART_DLL) = divisor & 0x000000ff; |