File tree Expand file tree Collapse file tree 2 files changed +95
-269
lines changed Expand file tree Collapse file tree 2 files changed +95
-269
lines changed Original file line number Diff line number Diff line change @@ -27,49 +27,18 @@ use nb::block;
27
27
28
28
#[ cfg( feature = "gpiod" ) ]
29
29
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" ) ]
41
32
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" ) ]
55
35
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" ) ]
72
38
use crate :: gpio:: gpiog;
39
+ use crate :: gpio:: { gpioa, gpiob, gpioc} ;
40
+
41
+ use crate :: pac:: { RCC , USART1 , USART2 , USART6 } ;
73
42
74
43
#[ cfg( feature = "usart3" ) ]
75
44
use crate :: pac:: USART3 ;
You can’t perform that action at this time.
0 commit comments