Skip to content

Commit 5e91c11

Browse files
committed
example rename and clean up
1 parent e26d1c1 commit 5e91c11

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

examples/MassStorage/msc_external_flash/msc_external_flash.ino

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@
1111

1212
/* This example demo how to expose on-board external Flash as USB Mass Storage.
1313
* Following library is required
14-
* - SdFat https://github.com/adafruit/SdFat
1514
* - Adafruit_SPIFlash https://github.com/adafruit/Adafruit_SPIFlash
15+
* - SdFat https://github.com/adafruit/SdFat
16+
*
17+
* Note: Adafruit fork of SdFat enabled ENABLE_EXTENDED_TRANSFER_CLASS and FAT12_SUPPORT
18+
* in SdFatConfig.h, which is needed to run SdFat on external flash. You can use original
19+
* SdFat library and manually change those macros
1620
*/
1721

1822
#include "SPI.h"
@@ -68,7 +72,7 @@ void setup()
6872
Serial.begin(115200);
6973
while ( !Serial ) delay(10); // wait for native usb
7074

71-
Serial.println("Adafruit TinyUSB Mass Storage SPI Flash example");
75+
Serial.println("Adafruit TinyUSB Mass Storage External Flash example");
7276
Serial.print("JEDEC ID: "); Serial.println(flash.getJEDECID(), HEX);
7377
Serial.print("Flash size: "); Serial.println(flash.size());
7478

examples/MassStorage/msc_external_flash_sdfat/msc_external_flash_sdfat.ino renamed to examples/MassStorage/msc_external_flash_sdcard/msc_external_flash_sdcard.ino

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@
99
any redistribution
1010
*********************************************************************/
1111

12-
/* This example exposes both external flash and SD card as mass storage
13-
* using Adafruit_SPIFlash and SdFat Library
14-
* - SdFat https://github.com/adafruit/SdFat
12+
/* This example exposes both external flash and SD card as mass storage (dual LUNs)
13+
* Following library is required
1514
* - Adafruit_SPIFlash https://github.com/adafruit/Adafruit_SPIFlash
15+
* - SdFat https://github.com/adafruit/SdFat
16+
*
17+
* Note: Adafruit fork of SdFat enabled ENABLE_EXTENDED_TRANSFER_CLASS and FAT12_SUPPORT
18+
* in SdFatConfig.h, which is needed to run SdFat on external flash. You can use original
19+
* SdFat library and manually change those macros
1620
*/
1721

1822
#include "SPI.h"

0 commit comments

Comments
 (0)