Documentation | BSP Guide 6.8 Console Set Attributes Should Discuss B0 (#144)
Joel Sherrill (@joel)
gitlab at rtems.org
Fri Apr 24 14:23:15 UTC 2026
Joel Sherrill created an issue: https://gitlab.rtems.org/rtems/docs/rtems-docs/-/issues/144
## Summary
Add guidance on handling B0 to the BSP and Device Driver Guide.
A baud rate of 0 is valid per POSIX [tcsetattr()](https://pubs.opengroup.org/onlinepubs/009696799/functions/tcsetattr.html). B0 is very old school UNIX and setting the baud rate to that indicates that the "the modem control lines shall no longer be asserted. Normally, this shall disconnect the line."
AFAIK no RTEMS UART drivers have support for modem control lines so this is a NA. But it is a potential dovide by zero if not checked.
I gave a presentation about my experience evaluating and running [CodeSonar on RTEMS](https://flightsoftware.jhuapl.edu/files/_site/workshops/old_archive/2014/). It was flagged as a missed divide by zero but is actually a feature not supported by the driver.
## Steps to reproduce
<!-- Pre-set options
- milestone
-->
--
View it on GitLab: https://gitlab.rtems.org/rtems/docs/rtems-docs/-/issues/144
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/20260424/79c1c314/attachment.htm>
More information about the bugs
mailing list