Skip to content

Commit 7f5f790

Browse files
committed
usart: modified one line to use tock-register
1 parent e092e07 commit 7f5f790

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

chips/stm32u5xx/src/usart.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ impl<'a> Usart<'a> {
256256

257257
// 2. Wait until TXE (Transmit Data Register Empty) is set
258258
while !regs.isr.is_set(ISR::TXE) {}
259-
regs.tdr.set(byte as u32);
259+
regs.tdr.write(TDR::TDR.val(byte as u32));
260260

261261
// 3. Wait for Transmission Complete before potentially re-enabling DMA
262262
while !regs.isr.is_set(ISR::TC) {}

0 commit comments

Comments
 (0)