Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid losing input bytes in the UART on STM32F4xx.
The compiler expands an assignment to part of the DR register to a read-modify-write sequence. However, reading DR has the side-effect of clearing the SR.RXNE bit, so sending a byte could result in the loss of input bytes.
- Loading branch information