This commit is contained in:
hathach committed 2018-10-29 19:48:43 +07:00
1 parent c76c4c7027
commit 6ee14d6a93
3 files changed
+7 -8

No files matched your search

+5 -1
View File
@@ -36,6 +36,9 @@
#if NRF52840_XXAA
#include "tusb.h"
#if CFG_TUD_MSC
#include "nrf_gpio.h"
#include "flash/flash_qspi.h"
@@ -128,4 +131,5 @@ void tud_msc_write10_complete_cb (uint8_t lun)
flash_qspi_flush();
}
#endif
#endif // CFG_TUD_MSC
#endif // nrf52840
@@ -26,10 +26,7 @@ void setup()
// Wait for user input to run.
Serial.println("This sketch will destroy all of your data in External Flash!");
Serial.print("Enter any keys to continue:");
while ( !Serial.available() )
{
delay(1);
}
while ( !Serial.available() ) delay(10);
Serial.println();
Serial.println();
@@ -37,13 +34,11 @@ void setup()
ExternalFS.begin();
Serial.print("Formating ...");
delay(1);
// Format without erase
ExternalFS.format(true);
Serial.println("Done");
delay(1);
}
// the loop function runs over and over again forever
@@ -107,7 +107,7 @@ DRESULT disk_ioctl (
break;
case GET_BLOCK_SIZE:
*((DWORD*) buff) = FLASH_QSPI_PAGE_SIZE / FF_MIN_SS;
*((DWORD*) buff) = (FLASH_QSPI_PAGE_SIZE / FF_MIN_SS);
break;
case CTRL_SYNC: