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
This commit is contained in:
parent
84fdcc8a62
commit
1d7a0bc21b
|
@ -74,11 +74,12 @@
|
|||
|
||||
#include <stdint.h>
|
||||
|
||||
#warning these are just here to get SPI to compile they need to be changed and moved!
|
||||
#define SS (1)
|
||||
#define MOSI 2
|
||||
#define MISO 3
|
||||
#define SCK 4
|
||||
|
||||
#define SS BOARD_SPI1_NSS_PIN
|
||||
#define MOSI BOARD_SPI1_MOSI_PIN
|
||||
#define MISO BOARD_SPI1_MISO_PIN
|
||||
#define SCK BOARD_SPI1_SCK_PIN
|
||||
|
||||
|
||||
typedef unsigned int word;
|
||||
// typedef uint16 word;// definition from Arduino website, now appears to be incorrect for 32 bit devices
|
||||
|
|
Loading…
Reference in New Issue