Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BACKPORT] Merged in kekiefer/nuttx/stm32f7-serial-fix-tiocssinglewir…
…e-upstream (pull request #658) stm32f7: serial: Fix ioctl TIOCSSINGLEWIRE The TRM notes that UE must be disabled in order to write HDSEL in USART_CR3. This was not being done, so calls to TIOCSSINGLEWIRE were silently failing. This change checks the state of UE in USART_CR1, clears the UE bit before writing HDSEL, then re-enables it if neccesary. Approved-by: GregoryN <[email protected]> (cherry picked from commit ba1f8e5)
- Loading branch information