Skip to content

Commit ecd67a9

Browse files
zfieldsfpistm
authored andcommitted
chore: update SPI pins for Swan_R5
1 parent 25d5d1e commit ecd67a9

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

Diff for: variants/STM32L4xx/L4R5Z(G-I)Y_L4R9Z(G-I)Y_L4S5ZIY_L4S9ZIY/variant_SWAN_R5.h

+16-2
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,23 @@
181181
#define USER_BTN PC13
182182
#endif
183183

184-
// On-board user button
184+
// Power switch EN pin
185185
#ifndef ENABLE_3V3
186-
#define ENABLE_3V3 PE4
186+
#define ENABLE_3V3 PE4
187+
#endif
188+
189+
// SPI definitions
190+
#ifndef PIN_SPI_SS
191+
#define PIN_SPI_SS PD0
192+
#endif
193+
#ifndef PIN_SPI_MOSI
194+
#define PIN_SPI_MOSI PB15
195+
#endif
196+
#ifndef PIN_SPI_MISO
197+
#define PIN_SPI_MISO PB14
198+
#endif
199+
#ifndef PIN_SPI_SCK
200+
#define PIN_SPI_SCK PD1
187201
#endif
188202

189203
// I2C definitions

0 commit comments

Comments
 (0)