Skip to content

Commit 4b38d5a

Browse files
committed
fix(xiao): name SPI3 MOSI alternate function
1 parent 80f14e8 commit 4b38d5a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎variants/STM32C5xx/C593C(E-G)(T-U)_C5A3CG(T-U)/variant_XIAO_STM32C5.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
/* Alternate functions used by the default board peripherals. */
3333
#define PA9_ALT1 (PA9 | ALT1)
3434
#define PA10_ALT1 (PA10 | ALT1)
35+
#define PB15_ALT2 (PB15 | ALT2)
3536

3637
#define NUM_DIGITAL_PINS 21
3738
#define NUM_ANALOG_INPUTS 4
@@ -46,7 +47,7 @@
4647
#define PIN_SPI_SS1 NUM_DIGITAL_PINS
4748
#define PIN_SPI_SS2 NUM_DIGITAL_PINS
4849
#define PIN_SPI_SS3 NUM_DIGITAL_PINS
49-
#define PIN_SPI_MOSI (PB15 | ALT2)
50+
#define PIN_SPI_MOSI PB15_ALT2
5051
#define PIN_SPI_MISO PB0
5152
#define PIN_SPI_SCK PE2
5253

0 commit comments

Comments
 (0)