Skip to content

Commit

Permalink
Cleanup serial
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh3Rm4n committed Jun 6, 2021
1 parent c93776a commit 249d684
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/serial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ macro_rules! usart {

impl<Tx, Rx> Serial<$USARTX, (Tx, Rx)> {
/// Splits the `Serial` abstraction into a transmitter and a receiver half
pub fn split(self) -> (Tx<$USARTX>, Rx<$USARTX>) {
pub fn split(self) -> (split::Tx<$USARTX>, split::Rx<$USARTX>) {
// NOTE(unsafe): This essentially duplicates the USART peripheral
//
// As RX and TX both do have direct access to the peripheral,
Expand All @@ -465,7 +465,7 @@ macro_rules! usart {
pac::Peripherals::steal().$USARTX,
)
};
(Tx::new(tx), Rx::new(rx))
(split::Tx::new(tx), split::Rx::new(rx))
}
}
)+
Expand Down

0 comments on commit 249d684

Please sign in to comment.