@@ -9,16 +9,12 @@ use core::marker::PhantomData;
9
9
10
10
use crate :: dac;
11
11
use crate :: exti:: { Event as ExtiEvent , ExtiExt } ;
12
- use crate :: gpio:: gpioa:: { PA0 , PA1 , PA2 , PA3 , PA4 , PA5 , PA7 } ;
13
- use crate :: gpio:: gpiob:: { PB0 , PB1 , PB2 } ;
14
- use crate :: gpio:: * ;
15
-
16
- #[ cfg( any( feature = "stm32g474" ) ) ]
17
12
use crate :: gpio:: {
18
- gpioa:: { PA11 , PA12 , PA6 } ,
19
- gpiob:: { PB6 , PB7 , PB8 , PB9 } ,
13
+ gpioa:: { PA0 , PA1 , PA11 , PA12 , PA2 , PA3 , PA4 , PA5 , PA6 , PA7 } ,
14
+ gpiob:: { PB0 , PB1 , PB14 , PB15 , PB2 , PB6 , PB7 , PB8 , PB9 } ,
20
15
gpioc:: PC2 ,
21
16
gpiof:: PF4 ,
17
+ Analog , OpenDrain , Output , PushPull , SignalEdge , AF2 , AF3 , AF8 ,
22
18
} ;
23
19
24
20
#[ cfg( any(
@@ -27,31 +23,13 @@ use crate::gpio::{
27
23
feature = "stm32g474" ,
28
24
feature = "stm32g484"
29
25
) ) ]
30
- use crate :: gpio:: gpioa:: { PA10 , PA8 , PA9 } ;
31
-
32
- #[ cfg( any(
33
- feature = "stm32g473" ,
34
- feature = "stm32g483" ,
35
- feature = "stm32g474" ,
36
- feature = "stm32g484"
37
- ) ) ]
38
- use crate :: gpio:: gpiob:: { PB10 , PB11 , PB12 , PB13 , PB14 , PB15 } ;
39
-
40
- #[ cfg( any(
41
- feature = "stm32g473" ,
42
- feature = "stm32g483" ,
43
- feature = "stm32g474" ,
44
- feature = "stm32g484"
45
- ) ) ]
46
- use crate :: gpio:: gpioc:: { PC6 , PC7 , PC8 } ;
47
-
48
- #[ cfg( any(
49
- feature = "stm32g473" ,
50
- feature = "stm32g483" ,
51
- feature = "stm32g474" ,
52
- feature = "stm32g484"
53
- ) ) ]
54
- use crate :: gpio:: gpiod:: { PD10 , PD11 , PD12 , PD13 , PD14 , PD15 } ;
26
+ use crate :: gpio:: {
27
+ gpioa:: { PA10 , PA8 , PA9 } ,
28
+ gpiob:: { PB10 , PB11 , PB12 , PB13 } ,
29
+ gpioc:: { PC6 , PC7 , PC8 } ,
30
+ gpiod:: { PD10 , PD11 , PD12 , PD13 , PD14 , PD15 } ,
31
+ AF7 ,
32
+ } ;
55
33
56
34
use crate :: gpio:: gpioc:: { PC0 , PC1 } ;
57
35
use crate :: gpio:: gpioe:: { PE7 , PE8 } ;
@@ -821,9 +799,6 @@ macro_rules! output_pin {
821
799
) +} ;
822
800
}
823
801
824
- // TODO: look up alternate functions for more devices than g474
825
- // https://www.mouser.se/datasheet/2/389/stm32g474cb-1600828.pdf#page=73
826
- #[ cfg( feature = "stm32g474" ) ]
827
802
output_pin ! {
828
803
COMP1 : PA0 , AF8 ,
829
804
COMP1 : PA6 , AF8 ,
@@ -845,13 +820,11 @@ output_pin! {
845
820
COMP4 : PB14 , AF8 ,
846
821
}
847
822
848
- // TODO: look up alternate functions for more devices than g474
849
- // https://www.mouser.se/datasheet/2/389/stm32g474cb-1600828.pdf#page=73
850
823
#[ cfg( any(
851
- // feature = "stm32g473",
852
- // feature = "stm32g483",
824
+ feature = "stm32g473" ,
825
+ feature = "stm32g483" ,
853
826
feature = "stm32g474" ,
854
- // feature = "stm32g484"
827
+ feature = "stm32g484" ,
855
828
) ) ]
856
829
output_pin ! {
857
830
COMP5 : PA9 , AF8 ,
0 commit comments