Skip to content

Commit e9f5f95

Browse files
committed
spi clean
1 parent f1d18b4 commit e9f5f95

File tree

2 files changed

+95
-269
lines changed

2 files changed

+95
-269
lines changed

src/serial.rs

Lines changed: 9 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -27,49 +27,18 @@ use nb::block;
2727

2828
#[cfg(feature = "gpiod")]
2929
use crate::gpio::gpiod;
30-
#[cfg(any(
31-
feature = "stm32f413",
32-
feature = "stm32f423",
33-
feature = "stm32f427",
34-
feature = "stm32f429",
35-
feature = "stm32f437",
36-
feature = "stm32f439",
37-
feature = "stm32f446",
38-
feature = "stm32f469",
39-
feature = "stm32f479"
40-
))]
30+
#[allow(unused)]
31+
#[cfg(feature = "gpioe")]
4132
use crate::gpio::gpioe;
42-
use crate::gpio::{gpioa, gpiob, gpioc};
43-
use crate::pac::{RCC, USART1, USART2, USART6};
44-
45-
#[cfg(any(
46-
feature = "stm32f413",
47-
feature = "stm32f423",
48-
feature = "stm32f427",
49-
feature = "stm32f429",
50-
feature = "stm32f437",
51-
feature = "stm32f439",
52-
feature = "stm32f469",
53-
feature = "stm32f479"
54-
))]
33+
#[allow(unused)]
34+
#[cfg(feature = "gpiof")]
5535
use crate::gpio::gpiof;
56-
#[cfg(any(
57-
feature = "stm32f405",
58-
feature = "stm32f407",
59-
feature = "stm32f412",
60-
feature = "stm32f413",
61-
feature = "stm32f415",
62-
feature = "stm32f417",
63-
feature = "stm32f423",
64-
feature = "stm32f427",
65-
feature = "stm32f429",
66-
feature = "stm32f437",
67-
feature = "stm32f439",
68-
feature = "stm32f446",
69-
feature = "stm32f469",
70-
feature = "stm32f479"
71-
))]
36+
#[allow(unused)]
37+
#[cfg(feature = "gpiog")]
7238
use crate::gpio::gpiog;
39+
use crate::gpio::{gpioa, gpiob, gpioc};
40+
41+
use crate::pac::{RCC, USART1, USART2, USART6};
7342

7443
#[cfg(feature = "usart3")]
7544
use crate::pac::USART3;

0 commit comments

Comments
 (0)