Skip to content

Commit 1d7a0bc

Browse files
Fix issue with default SPI pin definitions in wirish.h being incorrect (as they were the pin definitions for AVR boards). wirish.h now uses the pin definitions defined in board.h for whatever variant is selected
1 parent 84fdcc8 commit 1d7a0bc

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

STM32F1/cores/maple/wirish.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,12 @@
7474

7575
#include <stdint.h>
7676

77-
#warning these are just here to get SPI to compile they need to be changed and moved!
78-
#define SS (1)
79-
#define MOSI 2
80-
#define MISO 3
81-
#define SCK 4
77+
78+
#define SS BOARD_SPI1_NSS_PIN
79+
#define MOSI BOARD_SPI1_MOSI_PIN
80+
#define MISO BOARD_SPI1_MISO_PIN
81+
#define SCK BOARD_SPI1_SCK_PIN
82+
8283

8384
typedef unsigned int word;
8485
// typedef uint16 word;// definition from Arduino website, now appears to be incorrect for 32 bit devices

0 commit comments

Comments
 (0)