Fix non-DMA USART example.
This commit is contained in:
parent
07a6686879
commit
d5fb558005
@ -23,7 +23,7 @@ async fn main_task() {
|
|||||||
let p = embassy_stm32::init(Default::default());
|
let p = embassy_stm32::init(Default::default());
|
||||||
|
|
||||||
let config = Config::default();
|
let config = Config::default();
|
||||||
let mut usart = Uart::new(p.USART3, p.PD9, p.PD8, config, 16_000_000);
|
let mut usart = Uart::new(p.USART3, p.PD9, p.PD8, config);
|
||||||
|
|
||||||
usart.bwrite_all(b"Hello Embassy World!\r\n").unwrap();
|
usart.bwrite_all(b"Hello Embassy World!\r\n").unwrap();
|
||||||
info!("wrote Hello, starting echo");
|
info!("wrote Hello, starting echo");
|
||||||
|
Loading…
Reference in New Issue
Block a user