Skip to content

Commit

Permalink
Added feature gate to add PA1, PA11, PA12 as SPI1 pins.
Browse files Browse the repository at this point in the history
Esentially a copy of stm32-rs#332
but with the l431 added
  • Loading branch information
mkalte666 committed Nov 15, 2022
1 parent bf2ded1 commit 65ef35e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,17 @@ pins!(SPI1, 5,
))]
pins!(SPI1, 5, SCK: [PG2], MISO: [PG3], MOSI: [PG4]);

#[cfg(any(
feature = "stm32l452",
feature = "stm32l462",
feature = "stm32l412",
feature = "stm32l422",
feature = "stm32l431",
feature = "stm32l432",
feature = "stm32l442",
))]
pins!(SPI1, 5, SCK: [PA1], MISO: [PA11], MOSI: [PA12]);

#[cfg(not(any(feature = "stm32l433", feature = "stm32l443",)))]
use crate::stm32::SPI3;

Expand Down

0 comments on commit 65ef35e

Please sign in to comment.