japaric / stm32f103xx-hal

HAL for the STM32F103xx family of microcontrollers
Apache License 2.0
115 stars 40 forks source link

Serial overrun error #62

Closed etrombly closed 5 years ago

etrombly commented 6 years ago

If you trigger a serial overrun error you need to read the ore then dr register to clear it. If you split the Tx and Rx side there's no easy way to read the dr register manually to clear the flag. The read function will just return the overrun error without reading dr.

TheZoq2 commented 6 years ago

I ran into this issue as well and made a pull requeset a while back which has not been accepted yet. https://github.com/japaric/stm32f103xx-hal/pull/53

TheZoq2 commented 5 years ago

Since #53 was merged, this can be closed, right?

etrombly commented 5 years ago

should be good. I'll close this issue.