make usart::State private
This commit is contained in:
parent
870da00647
commit
d781e231cd
1 changed files with 18 additions and 16 deletions
|
@ -82,23 +82,25 @@ impl<T: BasicInstance> interrupt::typelevel::Handler<T::Interrupt> for Interrupt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Buffered UART State
|
pub(crate) use sealed::State;
|
||||||
pub struct State {
|
pub(crate) mod sealed {
|
||||||
rx_waker: AtomicWaker,
|
use super::*;
|
||||||
rx_buf: RingBuffer,
|
pub struct State {
|
||||||
|
pub(crate) rx_waker: AtomicWaker,
|
||||||
|
pub(crate) rx_buf: RingBuffer,
|
||||||
|
pub(crate) tx_waker: AtomicWaker,
|
||||||
|
pub(crate) tx_buf: RingBuffer,
|
||||||
|
}
|
||||||
|
|
||||||
tx_waker: AtomicWaker,
|
impl State {
|
||||||
tx_buf: RingBuffer,
|
/// Create new state
|
||||||
}
|
pub const fn new() -> Self {
|
||||||
|
Self {
|
||||||
impl State {
|
rx_buf: RingBuffer::new(),
|
||||||
/// Create new state
|
tx_buf: RingBuffer::new(),
|
||||||
pub const fn new() -> Self {
|
rx_waker: AtomicWaker::new(),
|
||||||
Self {
|
tx_waker: AtomicWaker::new(),
|
||||||
rx_buf: RingBuffer::new(),
|
}
|
||||||
tx_buf: RingBuffer::new(),
|
|
||||||
rx_waker: AtomicWaker::new(),
|
|
||||||
tx_waker: AtomicWaker::new(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue