Skip to content

Commit e9f54e2

Browse files
authored
Merge pull request #76 from gfroerli/fix-i2c-af-mapping
Fix alternative function mapping for I2C on PA9/10
2 parents 59f16cd + f05899c commit e9f54e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/i2c.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,12 +493,12 @@ i2c!(
493493
i2c1rst,
494494
sda: [
495495
(PB7<Output<OpenDrain>>, AltMode::AF1),
496-
(PA10<Output<OpenDrain>>, AltMode::AF1),
496+
(PA10<Output<OpenDrain>>, AltMode::AF6),
497497
(PA13<Output<OpenDrain>>, AltMode::AF3),
498498
],
499499
scl: [
500500
(PB6<Output<OpenDrain>>, AltMode::AF1),
501-
(PA9<Output<OpenDrain>>, AltMode::AF1),
501+
(PA9<Output<OpenDrain>>, AltMode::AF6),
502502
(PA4<Output<OpenDrain>>, AltMode::AF3),
503503
],
504504
);

0 commit comments

Comments
 (0)