RTEMS | bsps/shared/zynq-uart-polled: fix bug in zynq_uart_initialize() (!199)

Sebastian Huber (@sebhub) gitlab at rtems.org
Thu Aug 29 02:14:22 UTC 2024



Sebastian Huber created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/199

Project:Branches: sebhub/rtems:fix-zynq-uart-init to rtems/rtos/rtems:main
Author:   Sebastian Huber
Assignee: Sebastian Huber



## Summary

bsps/shared/zynq-uart-polled: fix bug in zynq_uart_initialize()

Similar to the recent commit in tms570-sci.c, the assumption that a UART will
only see printable ASCII characters, instead of any value in the range
0x00-0xFF, is wrong.

A non forgiving binary protocol will be thrown off by this driver sending
"\r\r\r\r" when initializing.

If a user wants to flush the interface, they should explicitely use the
dedicated function `tcflush(fd, TCIOFLUSH);`.


<!-- Default settings, if it is a dropdown it will set after submission -->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/199
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240829/16ea7afa/attachment-0001.htm>


More information about the bugs mailing list