Add uart::Read DMA-based implementation

* Rename existing read() to bread() (blocking)
This commit is contained in:
Ulf Lilleengen
2021-08-03 15:17:04 +02:00
parent ad62900a40
commit 6ff0614cb6
6 changed files with 103 additions and 5 deletions

View File

@ -33,7 +33,7 @@ fn main() -> ! {
let mut buf = [0u8; 1];
loop {
usart.read(&mut buf).unwrap();
usart.bread(&mut buf).unwrap();
usart.bwrite_all(&buf).unwrap();
}
}