David-OConnor / stm32-hal

This library provides access to STM32 peripherals in Rust.
MIT License
166 stars 44 forks source link

embedded_hal::serial::{Read, Write} are implement blocking (while should be nb) #91

Closed systec-ms closed 7 months ago

systec-ms commented 1 year ago

Good day,

i have taken a look into the embedded-hal UART implementation and found that it does not behave as expected. My expedition would be an instance return of WouldBlock from the write/read call if txe/rxne is not set. At the moment there is an endless wait. Now i am curious and ask myself if there is any reason for that?

David-OConnor commented 7 months ago

Closing as switched to EH 1.0.