make usart::State private
This commit is contained in:
parent
870da00647
commit
d781e231cd
1 changed files with 18 additions and 16 deletions
|
@ -82,13 +82,14 @@ impl<T: BasicInstance> interrupt::typelevel::Handler<T::Interrupt> for Interrupt
|
|||
}
|
||||
}
|
||||
|
||||
/// Buffered UART State
|
||||
pub(crate) use sealed::State;
|
||||
pub(crate) mod sealed {
|
||||
use super::*;
|
||||
pub struct State {
|
||||
rx_waker: AtomicWaker,
|
||||
rx_buf: RingBuffer,
|
||||
|
||||
tx_waker: AtomicWaker,
|
||||
tx_buf: RingBuffer,
|
||||
pub(crate) rx_waker: AtomicWaker,
|
||||
pub(crate) rx_buf: RingBuffer,
|
||||
pub(crate) tx_waker: AtomicWaker,
|
||||
pub(crate) tx_buf: RingBuffer,
|
||||
}
|
||||
|
||||
impl State {
|
||||
|
@ -102,6 +103,7 @@ impl State {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Bidirectional buffered UART
|
||||
pub struct BufferedUart<'d, T: BasicInstance> {
|
||||
|
|
Loading…
Reference in a new issue