stm32-rs / stm32f0xx-hal

A Rust `embedded-hal` implementation for all MCUs in the STM32 F0 family
BSD Zero Clause License
134 stars 59 forks source link

Provide access to serial status flags idle/txe/rxne #159

Closed oll3 closed 1 year ago

oll3 commented 1 year ago

Noticed that the serial interface were missing access to these flags and seem to be present in other stm32xx hals (like stm32f4xx-hal).

Added them so that an ISR can differ between these events.

Edit: removed unnecessary unsafe.

therealprof commented 1 year ago

Mind adding a CHANGELOG entry please?

oll3 commented 1 year ago

Mind adding a CHANGELOG entry please?

Sure. Added a getter for the tc (transmission complete) flag too.

bors[bot] commented 1 year ago

Build succeeded: