Skip to content

Commit 27516ed

Browse files
committed
Fix imports in serial module
1 parent 8cc42a1 commit 27516ed

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/serial.rs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,20 @@ use nb;
2323
feature = "stm32f358",
2424
feature = "stm32f398"
2525
))]
26-
use crate::gpio::{gpiod, gpioe};
26+
use crate::gpio::gpiod;
27+
#[cfg(any(
28+
feature = "stm32f302",
29+
feature = "stm32f303xb",
30+
feature = "stm32f303xc",
31+
feature = "stm32f303xd",
32+
feature = "stm32f303xe",
33+
feature = "stm32f373",
34+
feature = "stm32f378",
35+
feature = "stm32f328",
36+
feature = "stm32f358",
37+
feature = "stm32f398"
38+
))]
39+
use crate::gpio::gpioe;
2740

2841
#[cfg(feature = "stm32f303")]
2942
mod dma_imports {

0 commit comments

Comments
 (0)