mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 16:23:10 +00:00
Merge pull request #2529 from GrantM11235/buffered-uart-doc-links
stm32/usart: Add doc links to buffered uarts
This commit is contained in:
commit
e25eb6ca59
@ -140,11 +140,15 @@ pub struct BufferedUart<'d, T: BasicInstance> {
|
||||
}
|
||||
|
||||
/// Tx-only buffered UART
|
||||
///
|
||||
/// Created with [BufferedUart::split]
|
||||
pub struct BufferedUartTx<'d, T: BasicInstance> {
|
||||
phantom: PhantomData<&'d mut T>,
|
||||
}
|
||||
|
||||
/// Rx-only buffered UART
|
||||
///
|
||||
/// Created with [BufferedUart::split]
|
||||
pub struct BufferedUartRx<'d, T: BasicInstance> {
|
||||
phantom: PhantomData<&'d mut T>,
|
||||
}
|
||||
|
@ -12,6 +12,8 @@ use crate::dma::ReadableRingBuffer;
|
||||
use crate::usart::{Regs, Sr};
|
||||
|
||||
/// Rx-only Ring-buffered UART Driver
|
||||
///
|
||||
/// Created with [UartRx::into_ring_buffered]
|
||||
pub struct RingBufferedUartRx<'d, T: BasicInstance, RxDma: super::RxDma<T>> {
|
||||
_peri: PeripheralRef<'d, T>,
|
||||
ring_buf: ReadableRingBuffer<'d, RxDma, u8>,
|
||||
|
Loading…
Reference in New Issue
Block a user