diff options
author | Kinsey Moore <kinsey.moore@oarcorp.com> | 2020-12-02 13:20:36 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2020-12-03 17:35:28 -0600 |
commit | 5686b44d133223a57e2381237a1a601e32a5dc35 (patch) | |
tree | 4a4c6d3bcdb82c7ccd0ac59a066fecf30072b265 /bsps/shared/dev/serial/zynq-uart-polled.c | |
parent | samples/unlimited: Prevent compile error (diff) | |
download | rtems-5686b44d133223a57e2381237a1a601e32a5dc35.tar.bz2 |
zynq-uart: Fix set_attributes implementation
The zynq-uart set_attributes implementation was configured to always
return false which causes spconsole01 to fail. This restores the
disabled implementation which sets the baud rate registers
appropriately and allows spconsole01 to pass. This also expands the
set_attributes functionality to allow setting of the stop bits,
character width, and parity.
Diffstat (limited to 'bsps/shared/dev/serial/zynq-uart-polled.c')
-rw-r--r-- | bsps/shared/dev/serial/zynq-uart-polled.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsps/shared/dev/serial/zynq-uart-polled.c b/bsps/shared/dev/serial/zynq-uart-polled.c index a1b51ea521..442431d502 100644 --- a/bsps/shared/dev/serial/zynq-uart-polled.c +++ b/bsps/shared/dev/serial/zynq-uart-polled.c @@ -40,7 +40,7 @@ uint32_t zynq_uart_input_clock(void) return ZYNQ_CLOCK_UART; } -static int zynq_cal_baud_rate(uint32_t baudrate, +int zynq_cal_baud_rate(uint32_t baudrate, uint32_t* brgr, uint32_t* bauddiv, uint32_t modereg) |