Skip to content

Commit 65ef35e

Browse files
committed
Added feature gate to add PA1, PA11, PA12 as SPI1 pins.
Esentially a copy of stm32-rs#332 but with the l431 added
1 parent bf2ded1 commit 65ef35e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/spi.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,17 @@ pins!(SPI1, 5,
333333
))]
334334
pins!(SPI1, 5, SCK: [PG2], MISO: [PG3], MOSI: [PG4]);
335335

336+
#[cfg(any(
337+
feature = "stm32l452",
338+
feature = "stm32l462",
339+
feature = "stm32l412",
340+
feature = "stm32l422",
341+
feature = "stm32l431",
342+
feature = "stm32l432",
343+
feature = "stm32l442",
344+
))]
345+
pins!(SPI1, 5, SCK: [PA1], MISO: [PA11], MOSI: [PA12]);
346+
336347
#[cfg(not(any(feature = "stm32l433", feature = "stm32l443",)))]
337348
use crate::stm32::SPI3;
338349

0 commit comments

Comments
 (0)