diff --git a/include/FlashErase.h b/include/FlashErase.h index a0fc9cc..250c777 100644 --- a/include/FlashErase.h +++ b/include/FlashErase.h @@ -6,9 +6,8 @@ #ifndef FLASHERASE_H #define FLASHERASE_H -#include "Filesystem.h" #include "MainBD.h" -void doErase(mbed::BlockDevice &bd, mbed::FileSystem &fs); +void doErase(mbed::BlockDevice &bd); #endif diff --git a/include/MyUSBMSD.h b/include/MyUSBMSD.h index 84d6d34..51c7241 100644 --- a/include/MyUSBMSD.h +++ b/include/MyUSBMSD.h @@ -6,7 +6,6 @@ #ifndef MYUSBMSD_H #define MYUSBMSD_H -#include "Filesystem.h" #include "USBMSD.h" #include "mbed.h" @@ -20,5 +19,5 @@ virtual const uint8_t *string_iproduct_desc(); }; -void doUSBMSD(mbed::BlockDevice &bd, mbed::FileSystem &fs); +void doUSBMSD(mbed::BlockDevice &bd); #endif diff --git a/src/FlashErase.cpp b/src/FlashErase.cpp index 54b5d17..a84f71d 100644 --- a/src/FlashErase.cpp +++ b/src/FlashErase.cpp @@ -9,7 +9,7 @@ #include // function to erase the flash -void doErase(mbed::BlockDevice &bd, mbed::FileSystem &fs) { +void doErase(mbed::BlockDevice &bd) { printf("Initializing the block device... "); fflush(stdout); int err = bd.init(); diff --git a/src/MyUSBMSD.cpp b/src/MyUSBMSD.cpp index 51e026a..08d6bbc 100644 --- a/src/MyUSBMSD.cpp +++ b/src/MyUSBMSD.cpp @@ -5,7 +5,6 @@ #include "MyUSBMSD.h" #include "ButtonThread.h" -#include "Filesystem.h" #include "mbed.h" // create a custom usb mass storage subclass to override @@ -26,7 +25,7 @@ return string_iproduct_descriptor; } -void doUSBMSD(mbed::BlockDevice &bd, mbed::FileSystem &fs) { +void doUSBMSD(mbed::BlockDevice &bd) { printf("Switching to the usb mass storage mode...\n"); MyUSBMSD usb(&bd, true, 0x1209, 0x10); diff --git a/src/main.cpp b/src/main.cpp index 0645e07..feee60a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -25,11 +25,11 @@ unmountFilesystem(mainBD, mainFS); if (presses == 1) { - doUSBMSD(mainBD, mainFS); + doUSBMSD(mainBD); } if (presses == 2) { - doErase(mainBD, mainFS); + doErase(mainBD); } mountFilesystem(mainBD, mainFS);