From 65ef35e25031148f72f06826623f03e6502a98bf Mon Sep 17 00:00:00 2001 From: Malte Kiessling Date: Tue, 15 Nov 2022 17:43:17 +0100 Subject: [PATCH] Added feature gate to add PA1, PA11, PA12 as SPI1 pins. Esentially a copy of https://github.com/stm32-rs/stm32l4xx-hal/pull/332 but with the l431 added --- src/spi.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/spi.rs b/src/spi.rs index dea33abe..6a26d040 100644 --- a/src/spi.rs +++ b/src/spi.rs @@ -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;