diff --git a/avrpins.h b/avrpins.h index 89127f19..f1830fdf 100644 --- a/avrpins.h +++ b/avrpins.h @@ -1356,6 +1356,60 @@ MAKE_PIN(P33, (9)); #undef MAKE_PIN +#elif defined(AM_PART_APOLLO3) +// SPARKFUN REDBOARD ARTEMIS ALL THE PINS +#include "Arduino.h" \ + +#define P0 0 +#define P1 1 +#define P2 2 +#define P3 3 +#define P4 4 +#define P5 5 +#define P6 6 +#define P7 7 +#define P8 8 +#define P9 9 +#define P10 10 +#define P11 11 +#define P12 12 +#define P13 13 +#define P14 14 +#define P15 15 +#define P16 16 +#define P17 17 +#define P18 18 +#define P19 19 +#define P20 20 +#define P21 21 +#define P22 22 +#define P23 23 +#define P24 24 +#define P25 25 +#define P26 26 +#define P27 27 +#define P28 28 +#define P29 29 +#define P30 30 +#define P31 31 +#define P32 32 +#define P33 33 +#define P34 34 +#define P35 35 +#define P36 36 +#define P37 37 + +#if defined(AM_PACKAGE_BGA) + #define P38 38 + #define P39 39 + #define P40 40 + #define P41 41 + #define P42 42 + #define P43 43 + #define P44 44 + #define P45 45 +#endif + #else #error "Please define board in avrpins.h" diff --git a/settings.h b/settings.h index 6b134dfb..f7163425 100644 --- a/settings.h +++ b/settings.h @@ -62,6 +62,7 @@ e-mail : support@circuitsathome.com /* Set this to a one to use the xmem2 lock. This is needed for multitasking and threading */ #define USE_XMEM_SPI_LOCK 0 + //////////////////////////////////////////////////////////////////////////////// // Wii IR camera //////////////////////////////////////////////////////////////////////////////// @@ -175,6 +176,10 @@ e-mail : support@circuitsathome.com extern SPI_HandleTypeDef SPI_Handle; // Needed to be declared in your main.cpp #endif +#ifdef AM_PART_APOLLO3 +#include +#endif + // Fix defines on Arduino Due #ifdef ARDUINO_SAM_DUE #ifdef tokSETUP diff --git a/usbhost.h b/usbhost.h index de34813b..d9a162d9 100644 --- a/usbhost.h +++ b/usbhost.h @@ -122,6 +122,8 @@ typedef SPi< P14, P13, P12, P15 > spi; typedef SPi< P18, P23, P19, P5 > spi; #elif defined(ARDUINO_NRF52840_FEATHER) typedef SPi< P26, P25, P24, P5 > spi; +#elif defined(AM_PART_APOLLO3) +typedef SPi< 5, 7, 6, 13> spi; #else #error "No SPI entry in usbhost.h" #endif