Teensy++2 support with xmem2

This commit is contained in:
Andrew J. Kroll 2014-02-22 12:52:57 -05:00
parent c98832a9e6
commit 11a93eb06a
3 changed files with 13 additions and 2 deletions

View file

@ -18,7 +18,11 @@
#ifdef BOARD_BLACK_WIDDOW
typedef MAX3421e<P6, P3> MAX3421E; // Black Widow
#elif defined(CORE_TEENSY) && (defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB1286__))
#if EXT_RAM
typedef MAX3421e<P20, P7> MAX3421E; // Teensy++ 2.0 with XMEM2
#else
typedef MAX3421e<P9, P8> MAX3421E; // Teensy++ 1.0 and 2.0
#endif
#elif defined(BOARD_MEGA_ADK)
typedef MAX3421e<P53, P54> MAX3421E; // Arduino Mega ADK
#elif defined(ARDUINO_AVR_BALANDUINO)

View file

@ -681,7 +681,8 @@ public:
#define P8 Pa1 /* 8 - PA1 */
#define P9 Pa2 /* 9 - PA2 */
#define P10 Pa3 /* 10 - PA3 */
#define P11 Pa4 /* 11 - PA4 */
#define P11 Pa4 /* 11 digitalWrite(4, 0);
- PA4 */
#define P12 Pa5 /* 12 - PA5 */
#define P13 Pc1 /* 13 - PC1 */
#define P14 Pc0 /* 14 - PC0 */

View file

@ -103,13 +103,19 @@
#define WIICAMERA
#endif
#if USE_XMEM_SPI_LOCK | defined(USE_MULTIPLE_APP_API)
#if USE_XMEM_SPI_LOCK || defined(USE_MULTIPLE_APP_API)
#include <xmem.h>
#else
#define XMEM_ACQUIRE_SPI() (void(0))
#define XMEM_RELEASE_SPI() (void(0))
#endif
#if !defined(EXT_RAM) && defined(EXT_RAM_STACK) || defined(EXT_RAM_HEAP)
#include <xmem.h>
#else
#define EXT_RAM 0
#endif
#if defined(__MK20DX128__) || defined(__MK20DX256__)
#define USING_SPI4TEENSY3 USE_SPI4TEENSY3
#else