File tree 2 files changed +19
-1
lines changed
2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -74,4 +74,8 @@ Directory Arduino_SPIFFS::opendir(const char *name)
74
74
* EXTERN DECLARATION
75
75
**************************************************************************************/
76
76
77
- Arduino_SPIFFS filesystem (w25q16_spi_read, w25q16_spi_write, w25q16_spi_erase);
77
+ Arduino_SPIFFS filesystem (
78
+ #if defined(SPIFFS_USE_W25Q16DV_FLASH)
79
+ w25q16_spi_read, w25q16_spi_write, w25q16_spi_erase
80
+ #endif
81
+ );
Original file line number Diff line number Diff line change @@ -33,6 +33,20 @@ extern "C"
33
33
#include " spiffs.h"
34
34
}
35
35
36
+ /* *************************************************************************************
37
+ * CONFIGURATION
38
+ **************************************************************************************/
39
+
40
+ #define SPIFFS_USE_W25Q16DV_FLASH
41
+
42
+ /* *************************************************************************************
43
+ * SANITY CHECK
44
+ **************************************************************************************/
45
+
46
+ #if !defined(SPIFFS_USE_W25Q16DV_FLASH)
47
+ #error "Enable at least one flash chip for usage with Arduino_SPIFFS"
48
+ #endif
49
+
36
50
/* *************************************************************************************
37
51
* STATIC ASSERTIONS
38
52
**************************************************************************************/
You can’t perform that action at this time.
0 commit comments