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/include | |
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/include')
-rw-r--r-- | bsps/include/dev/serial/zynq-uart.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bsps/include/dev/serial/zynq-uart.h b/bsps/include/dev/serial/zynq-uart.h index 2c0f250a3a..0eb1dd5f29 100644 --- a/bsps/include/dev/serial/zynq-uart.h +++ b/bsps/include/dev/serial/zynq-uart.h @@ -78,6 +78,13 @@ void zynq_uart_write_polled( */ void zynq_uart_reset_tx_flush(zynq_uart_context *ctx); +int zynq_cal_baud_rate( + uint32_t baudrate, + uint32_t* brgr, + uint32_t* bauddiv, + uint32_t modereg +); + #ifdef __cplusplus } #endif /* __cplusplus */ |