David-OConnor / stm32-hal

This library provides access to STM32 peripherals in Rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

systec-ms opened this issue · comments

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?

Closing as switched to EH 1.0.