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:
Roger Clark 2015-07-05 03:08:34 +10:00
parent 84fdcc8a62
commit 1d7a0bc21b
1 changed files with 6 additions and 5 deletions

View File

@ -74,11 +74,12 @@
#include <stdint.h> #include <stdint.h>
#warning these are just here to get SPI to compile they need to be changed and moved!
#define SS (1) #define SS BOARD_SPI1_NSS_PIN
#define MOSI 2 #define MOSI BOARD_SPI1_MOSI_PIN
#define MISO 3 #define MISO BOARD_SPI1_MISO_PIN
#define SCK 4 #define SCK BOARD_SPI1_SCK_PIN
typedef unsigned int word; typedef unsigned int word;
// typedef uint16 word;// definition from Arduino website, now appears to be incorrect for 32 bit devices // typedef uint16 word;// definition from Arduino website, now appears to be incorrect for 32 bit devices