Clean up unsafe write to USART TDR
Accessing the USARTs TDR is safe again with stm32f3 0.13.2.
@@ -340,7 +340,7 @@ where
fn write(&mut self, byte: u8) -> nb::Result<(), Infallible> {
if self.usart.isr.read().txe().bit_is_set() {
- self.usart.tdr.write(|w| unsafe { w.tdr().bits(u16::from(byte)) });
+ self.usart.tdr.write(|w| w.tdr().bits(u16::from(byte)));
Ok(())
} else {
Err(nb::Error::WouldBlock)
