Skip to content

Commit 4d6620e

Browse files
mgottschlagMathias Gottschlag
authored andcommitted
The GPIOs of STM32G4 have 16 alternate functions, not 8.
1 parent 040e5ae commit 4d6620e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/gpio.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ pub const AF4: u8 = 4;
7272
pub const AF5: u8 = 5;
7373
pub const AF6: u8 = 6;
7474
pub const AF7: u8 = 7;
75+
pub const AF8: u8 = 8;
76+
pub const AF9: u8 = 9;
77+
pub const AF10: u8 = 10;
78+
pub const AF11: u8 = 11;
79+
pub const AF12: u8 = 12;
80+
pub const AF13: u8 = 13;
81+
pub const AF14: u8 = 14;
82+
pub const AF15: u8 = 15;
7583

7684
/// External Interrupt Pin
7785
pub trait ExtiPin {

0 commit comments

Comments
 (0)