Skip to content

Commit 21d1e17

Browse files
committed
WIP: pico build errors for SDFat
1 parent b72640a commit 21d1e17

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

src/Wippersnapper_Boards.h

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,38 @@
189189
#define USE_TINYUSB
190190
#define USE_STATUS_LED
191191
#define STATUS_LED_PIN LED_BUILTIN
192+
//------------- Adafruit SDfat Fork configuration -------------//
193+
#define USE_BLOCK_DEVICE_INTERFACE 1
194+
#define FAT12_SUPPORT 1
195+
#define SDFAT_FILE_TYPE 1
196+
#define USE_SPI_ARRAY_TRANSFER 1
197+
#define USE_UTF8_LONG_NAMES 1
192198
#elif defined(ARDUINO_RASPBERRY_PI_PICO_2W)
193199
#define BOARD_ID "rpi-pico-2w"
194200
#define USE_TINYUSB
195201
#define USE_STATUS_LED
196202
#define STATUS_LED_PIN LED_BUILTIN
203+
//------------- Adafruit SDfat Fork configuration -------------//
204+
#ifdef USE_BLOCK_DEVICE_INTERFACE
205+
#undef USE_BLOCK_DEVICE_INTERFACE
206+
#endif
207+
#define USE_BLOCK_DEVICE_INTERFACE 1
208+
#ifdef FAT12_SUPPORT
209+
#undef FAT12_SUPPORT
210+
#endif
211+
#define FAT12_SUPPORT 1
212+
#ifdef SDFAT_FILE_TYPE
213+
#undef SDFAT_FILE_TYPE
214+
#endif
215+
#define SDFAT_FILE_TYPE 1
216+
#ifdef USE_SPI_ARRAY_TRANSFER
217+
#undef USE_SPI_ARRAY_TRANSFER
218+
#endif
219+
#define USE_SPI_ARRAY_TRANSFER 1
220+
#ifdef USE_UTF8_LONG_NAMES
221+
#undef USE_UTF8_LONG_NAMES
222+
#endif
223+
#define USE_UTF8_LONG_NAMES 1
197224
#else
198225
#warning "Board type not identified within Wippersnapper_Boards.h!"
199226
#endif

0 commit comments

Comments
 (0)