File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed
msc_external_flash_sdcard Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 11
11
12
12
/* This example demo how to expose on-board external Flash as USB Mass Storage.
13
13
* Following library is required
14
- * - SdFat https://github.com/adafruit/SdFat
15
14
* - 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
16
20
*/
17
21
18
22
#include " SPI.h"
@@ -68,7 +72,7 @@ void setup()
68
72
Serial.begin (115200 );
69
73
while ( !Serial ) delay (10 ); // wait for native usb
70
74
71
- Serial.println (" Adafruit TinyUSB Mass Storage SPI Flash example" );
75
+ Serial.println (" Adafruit TinyUSB Mass Storage External Flash example" );
72
76
Serial.print (" JEDEC ID: " ); Serial.println (flash.getJEDECID (), HEX);
73
77
Serial.print (" Flash size: " ); Serial.println (flash.size ());
74
78
Original file line number Diff line number Diff line change 9
9
any redistribution
10
10
*********************************************************************/
11
11
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
15
14
* - 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
16
20
*/
17
21
18
22
#include " SPI.h"
File renamed without changes.
You can’t perform that action at this time.
0 commit comments