Skip to content

Commit 013d8e6

Browse files
Add missing definitions for MISO etc to F4 core
1 parent 2da4a3d commit 013d8e6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

STM32F4/variants/discovery_f407/variant.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,10 @@
1111

1212
#define portConfigRegister(pin) ( &(PIN_MAP[pin].gpio_device->regs->CRL) )
1313

14+
static const uint8_t SS = BOARD_SPI1_NSS_PIN;
15+
static const uint8_t SS1 = BOARD_SPI2_NSS_PIN;
16+
static const uint8_t MOSI = BOARD_SPI1_MOSI_PIN;
17+
static const uint8_t MISO = BOARD_SPI1_MISO_PIN;
18+
static const uint8_t SCK = BOARD_SPI1_SCK_PIN;
19+
1420
#endif /* _VARIANT_ARDUINO_STM32_ */

0 commit comments

Comments
 (0)