Implement remaining logic for blocking UART. async is still todo, awaiting DMA

This commit is contained in:
Mathias
2022-08-18 10:14:37 +02:00
parent 16d0ae7678
commit d52c7ded49
3 changed files with 371 additions and 38 deletions

View File

@ -1,5 +1,7 @@
use core::sync::atomic::{compiler_fence, Ordering};
use embassy_hal_common::impl_peripheral;
use crate::pac::dma::vals;
use crate::{pac, peripherals};
@ -35,6 +37,10 @@ impl<T: Channel> Dma<T> {
}
}
pub struct NoDma;
impl_peripheral!(NoDma);
mod sealed {
use super::*;