Skip to content

Commit 3533f78

Browse files
authored
Opt into blocking write impl for serial::Tx (#171)
This opts into the default implementation of `serial::blocking::Write`, providing the `bwrite_all` and `bflush` methods.
1 parent d741438 commit 3533f78

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/serial.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,9 @@ macro_rules! hal {
496496
}
497497
}
498498

499+
impl embedded_hal::blocking::serial::write::Default<u8>
500+
for Tx<pac::$USARTX> {}
501+
499502
impl Rx<pac::$USARTX> {
500503
pub fn circ_read<B, H>(
501504
&self,

0 commit comments

Comments
 (0)