Add uart::Read DMA-based implementation
* Rename existing read() to bread() (blocking)
This commit is contained in:
@ -34,7 +34,7 @@ async fn main_task() {
|
||||
|
||||
let mut buf = [0u8; 1];
|
||||
loop {
|
||||
usart.read(&mut buf).unwrap();
|
||||
usart.bread(&mut buf).unwrap();
|
||||
usart.bwrite_all(&buf).unwrap();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user