File tree Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 18
18
#ifdef BOARD_BLACK_WIDDOW
19
19
typedef MAX3421e<P6, P3> MAX3421E; // Black Widow
20
20
#elif defined(CORE_TEENSY) && (defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB1286__))
21
+ #if EXT_RAM
22
+ typedef MAX3421e<P20, P7> MAX3421E; // Teensy++ 2.0 with XMEM2
23
+ #else
21
24
typedef MAX3421e<P9, P8> MAX3421E; // Teensy++ 1.0 and 2.0
25
+ #endif
22
26
#elif defined(BOARD_MEGA_ADK)
23
27
typedef MAX3421e<P53, P54> MAX3421E; // Arduino Mega ADK
24
28
#elif defined(ARDUINO_AVR_BALANDUINO)
Original file line number Diff line number Diff line change @@ -503,7 +503,7 @@ void loop() {
503
503
if (isfat (parts[cpart].type )) {
504
504
Fats[cpart] = new PFAT (&sto[i], cpart, parts[cpart].firstSector );
505
505
// int r = Fats[cpart]->Good();
506
- if (Fats[cpart]->Good ()) {
506
+ if (Fats[cpart]->MountStatus ()) {
507
507
delete Fats[cpart];
508
508
Fats[cpart] = NULL ;
509
509
} else cpart++;
@@ -514,7 +514,7 @@ void loop() {
514
514
// try superblock
515
515
Fats[cpart] = new PFAT (&sto[i], cpart, 0 );
516
516
// int r = Fats[cpart]->Good();
517
- if (Fats[cpart]->Good ()) {
517
+ if (Fats[cpart]->MountStatus ()) {
518
518
// printf_P(PSTR("Superblock error %x\r\n"), r);
519
519
delete Fats[cpart];
520
520
Fats[cpart] = NULL ;
Original file line number Diff line number Diff line change 102
102
#define WIICAMERA
103
103
#endif
104
104
105
- #if USE_XMEM_SPI_LOCK | defined(USE_MULTIPLE_APP_API )
105
+ // To use some other locking (e.g. freertos),
106
+ // define XMEM_ACQUIRE_SPI and XMEM_RELEASE_SPI to point to your lock and unlock.
107
+ // NOTE: NO argument is passed. You have to do this within your routine for
108
+ // whatever you are using to lock and unlock.
109
+ #if !defined(XMEM_ACQUIRE_SPI )
110
+ #if USE_XMEM_SPI_LOCK || defined(USE_MULTIPLE_APP_API )
106
111
#include <xmem.h>
107
112
#else
108
113
#define XMEM_ACQUIRE_SPI () (void(0))
109
114
#define XMEM_RELEASE_SPI () (void(0))
110
115
#endif
116
+ #endif
117
+
118
+ #if !defined(EXT_RAM ) && defined(EXT_RAM_STACK ) || defined(EXT_RAM_HEAP )
119
+ #include <xmem.h>
120
+ #else
121
+ #define EXT_RAM 0
122
+ #endif
111
123
112
124
#if defined(CORE_TEENSY ) && (defined(__MK20DX128__ ) || defined(__MK20DX256__ ))
113
125
#define USING_SPI4TEENSY3 USE_SPI4TEENSY3
You can’t perform that action at this time.
0 commit comments