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 cb54c44 commit da293cdCopy full SHA for da293cd
src/serial.rs
@@ -4,7 +4,6 @@ use core::ptr;
4
5
use nb::block;
6
7
-use crate::gpio::{gpioa::*, gpiob::*, gpioc::*, gpiod::*, gpioe::*};
8
use crate::gpio::{PinMode, AltMode};
9
use crate::hal;
10
use crate::hal::prelude::*;
@@ -26,6 +25,12 @@ pub use crate::dma;
26
25
#[cfg(any(feature = "stm32l0x2", feature = "stm32l0x3"))]
27
use crate::dma::Buffer;
28
+use crate::gpio::{gpioa::*, gpiob::*};
29
+#[cfg(any(feature = "io-STM32L031", feature = "io-STM32L051", feature = "io-STM32L071"))]
30
+use crate::gpio::gpioc::*;
31
+#[cfg(any(feature = "io-STM32L071"))]
32
+use crate::gpio::{gpiod::*, gpioe::*};
33
+
34
/// Serial error
35
#[derive(Debug)]
36
pub enum Error {
@@ -173,7 +178,7 @@ impl_pins!(
173
178
PA0, AF6, LPUART1, RxPin;
174
179
PA1, AF6, LPUART1, TxPin;
175
180
PA2, AF4, USART2, TxPin;
176
- PA2, AF6, LPUART1, TxPin,
181
+ PA2, AF6, LPUART1, TxPin;
177
182
PA3, AF4, USART2, RxPin;
183
PA3, AF6, LPUART1, RxPin;
184
PA4, AF6, LPUART1, TxPin;
0 commit comments