mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-09 08:37:58 +08:00
bsp/xilinx-zynq: Flush TX-Buffer before initializing uart
Closes #4055 Closes #4056
This commit is contained in:
1 parent
1a506170cc
commit
b87efa7599
1 file changed
+2
@@ -122,6 +122,8 @@ void zynq_uart_initialize(rtems_termios_device_context *base)
|
||||
uint32_t brgr = 0x3e;
|
||||
uint32_t bauddiv = 0x6;
|
||||
|
||||
zynq_uart_reset_tx_flush(ctx);
|
||||
|
||||
zynq_cal_baud_rate(ZYNQ_UART_DEFAULT_BAUD, &brgr, &bauddiv, regs->mode);
|
||||
|
||||
regs->control &= ~(ZYNQ_UART_CONTROL_RXEN | ZYNQ_UART_CONTROL_TXEN);
|
||||
|
||||
Reference in new issue
Block a user