Move into parent module
@@ -8,7 +8,11 @@ use core::fmt;
use core::ops::Deref;
use core::sync::atomic::{compiler_fence, Ordering::SeqCst};
+use embedded_hal::blocking::serial as bserial;
use embedded_hal::digital::v2::OutputPin;
+use embedded_hal::serial;
+
+use nb;
#[cfg(any(feature = "52833", feature = "52840"))]
use crate::pac::UARTE1;
@@ -596,13 +600,6 @@ where
}
}
-/// Implementation of the embedded_hal::serial::* and embedded_hal::blocking::serial::* traits for UartTx and UartRx.
-pub mod serial {
- use super::*;
- use embedded_hal::blocking::serial as bserial;
- use embedded_hal::serial;
- use nb;
-
impl<T> serial::Write<u8> for UarteTx<T>
where
T: Instance,
@@ -720,4 +717,3 @@ pub mod serial {
}
}
}
-}
