Skip to content

Commit b71ff90

Browse files
committed
USBMSD: force internal flash for nRF52 only
1 parent 6040c4d commit b71ff90

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libraries/USBMSD/Singleton.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ class FlashIAPBlockDeviceMutexFriendly: public FlashIAPBlockDevice {
7878
*/
7979

8080
//static FlashIAPBlockDeviceMutexFriendly bd(0x80000, 0x80000);
81+
#ifdef NRF52840_XXAA
8182
static FlashIAPBlockDevice bd(0x80000, 0x80000);
8283

8384
void USBMSD::begin()
@@ -94,4 +95,6 @@ mbed::FATFileSystem& USBMSD::getFileSystem()
9495
return fs;
9596
}
9697

97-
USBMSD MassStorage(&bd);
98+
USBMSD MassStorage(&bd);
99+
100+
#endif

0 commit comments

Comments
 (0)