Skip to content

Commit 1821d32

Browse files
committed
Use Boards file instead of redefining board features
1 parent 1940f36 commit 1821d32

File tree

3 files changed

+3
-20
lines changed

3 files changed

+3
-20
lines changed

extras/tests/TestFileOperations/TestFileOperations.ino

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
#include <Arduino_UnifiedStorage.h>
2+
#include "Boards.h"
23
#include "Utils.h"
34

45
#define ARDUINO_UNIFIED_STORAGE_DEBUG
56

6-
#if !defined(ARDUINO_OPTA)
7-
#define HAS_SD
8-
#endif
9-
#define HAS_USB
10-
#define HAS_QSPI
11-
127
#if defined(HAS_USB)
138
USBStorage usb = USBStorage();
149
#endif

extras/tests/TestRepeatedFormatMount/TestRepeatedFormatMount.ino

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
#include <Arduino_UnifiedStorage.h>
22
#include "Utils.h"
3+
#include "Boards.h"
34

45
#define ARDUINO_UNIFIED_STORAGE_DEBUG
56

6-
#if !defined(ARDUINO_OPTA)
7-
#define HAS_SD
8-
#endif
9-
10-
#define HAS_USB
11-
#define HAS_QSPI
12-
137
#if defined(HAS_USB)
148
USBStorage usb = USBStorage();
159
#endif

extras/tests/TestUnified/TestUnified.ino

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
#include <Arduino_UnifiedStorage.h>
22
#include "Utils.h"
3+
#include "Boards.h"
34

45
#define ARDUINO_UNIFIED_STORAGE_DEBUG
56

6-
#if !defined(ARDUINO_OPTA)
7-
#define HAS_SD
8-
#endif
9-
10-
#define HAS_USB
11-
#define HAS_QSPI
12-
137
#if defined(HAS_USB)
148
USBStorage usb = USBStorage();
159
#endif

0 commit comments

Comments
 (0)