From 70acf114665e7a3488e7a65d40ac424e47f00a0e Mon Sep 17 00:00:00 2001 From: "Zachary J. Fields" Date: Wed, 8 Sep 2021 08:38:21 -0500 Subject: [PATCH] chore: update SPI pins for Swan_R5 --- .../variant_SWAN_R5.h | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/variants/STM32L4xx/L4R5Z(G-I)Y_L4R9Z(G-I)Y_L4S5ZIY_L4S9ZIY/variant_SWAN_R5.h b/variants/STM32L4xx/L4R5Z(G-I)Y_L4R9Z(G-I)Y_L4S5ZIY_L4S9ZIY/variant_SWAN_R5.h index 2597b6293a..110932011d 100644 --- a/variants/STM32L4xx/L4R5Z(G-I)Y_L4R9Z(G-I)Y_L4S5ZIY_L4S9ZIY/variant_SWAN_R5.h +++ b/variants/STM32L4xx/L4R5Z(G-I)Y_L4R9Z(G-I)Y_L4S5ZIY_L4S9ZIY/variant_SWAN_R5.h @@ -181,9 +181,23 @@ #define USER_BTN PC13 #endif -// On-board user button +// Power switch EN pin #ifndef ENABLE_3V3 - #define ENABLE_3V3 PE4 + #define ENABLE_3V3 PE4 +#endif + +// SPI definitions +#ifndef PIN_SPI_SS + #define PIN_SPI_SS PD0 +#endif +#ifndef PIN_SPI_MOSI + #define PIN_SPI_MOSI PB15 +#endif +#ifndef PIN_SPI_MISO + #define PIN_SPI_MISO PB14 +#endif +#ifndef PIN_SPI_SCK + #define PIN_SPI_SCK PD1 #endif // I2C definitions