We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c93776a commit 249d684Copy full SHA for 249d684
src/serial.rs
@@ -449,7 +449,7 @@ macro_rules! usart {
449
450
impl<Tx, Rx> Serial<$USARTX, (Tx, Rx)> {
451
/// Splits the `Serial` abstraction into a transmitter and a receiver half
452
- pub fn split(self) -> (Tx<$USARTX>, Rx<$USARTX>) {
+ pub fn split(self) -> (split::Tx<$USARTX>, split::Rx<$USARTX>) {
453
// NOTE(unsafe): This essentially duplicates the USART peripheral
454
//
455
// As RX and TX both do have direct access to the peripheral,
@@ -465,7 +465,7 @@ macro_rules! usart {
465
pac::Peripherals::steal().$USARTX,
466
)
467
};
468
- (Tx::new(tx), Rx::new(rx))
+ (split::Tx::new(tx), split::Rx::new(rx))
469
}
470
471
)+
0 commit comments