USBLocalFileSystem.lib testing program for LPC11U35

Dependencies:   BaseDAP SWD USBDAP USBLocalFileSystem mbed DA14580 SWSPI W25X40BV

USB memory + Writer for DA14580 BLE chip + CMSIS-DAP debugger + USB-UART functions in one chip

One button input loads your application into DA14580 or DA14580 included BLE modules

Quote:

Current compatible hardware description can be found at https://github.com/K4zuki/da14580/releases/tag/MurataBLEr04

Revision:
6:cb6984367a7a
Child:
9:e279dee6e41c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mystorage.h	Fri Mar 04 10:34:25 2016 +0000
@@ -0,0 +1,23 @@
+/** MyStorage: a StorageInterface class to interface SPI flash memory and USBLocalFilesystem
+*/
+#include "mbed.h"
+#include "StorageInterface.h"
+#include "W25X40BV.h"
+/** MyStorage: a StorageInterface class to interface SPI flash memory and USBLocalFilesystem
+It uses W25X40BV library also hints from Sissors/code/S25FL216K_USBFileSystem
+- USBLocalFileSystem by va009039/USBLocalFileSystem
+- W25X40BV by k4zuki/code/W25X40BV forked from jyam/code/W25X40BV
+*/
+class MyStorage : public StorageInterface {
+public:
+    MyStorage(PinName mosi, PinName miso, PinName sclk, PinName cs);
+
+    virtual int storage_read(uint8_t* data, uint32_t block);
+    virtual int storage_write(const uint8_t* data, uint32_t block);
+    virtual uint32_t storage_sectors();
+    virtual uint32_t storage_size();
+
+private:
+    W25X40BV _flash;
+    uint64_t _sectors;
+};