Skip to content

Commit 90e6ba5

Browse files
spi: Fix miso configuration for pb2
The datasheet shows pb2 SPI2 MISO as AF1, not AF2. TEST=Wired up an stm32g071 and confirmed that SPI2 with MISO on pb2 worked with this change and didn't work without.
1 parent 0828648 commit 90e6ba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ spi!(
315315
miso: [
316316
(PA3<DefaultMode>, AltFunction::AF0),
317317
(PA9<DefaultMode>, AltFunction::AF4),
318-
(PB2<DefaultMode>, AltFunction::AF2),
318+
(PB2<DefaultMode>, AltFunction::AF1),
319319
(PB6<DefaultMode>, AltFunction::AF4),
320320
(PB14<DefaultMode>, AltFunction::AF0),
321321
(PC2<DefaultMode>, AltFunction::AF1),

0 commit comments

Comments
 (0)