Implementation of a LocalFileSystem using S25FL216K serial flash memory. Currently only 256kB available!
Dependencies: S25FL216K USBFileSystem
Dependents: S25FL216K_HelloWorld
Flash_USBFileSystem.h
- Committer:
- Sissors
- Date:
- 2013-07-31
- Revision:
- 0:9056eb697726
File content as of revision 0:9056eb697726:
#ifndef S25FL216K_USB #define S25FL216K_USB #include "mbed.h" #include "USBFileSystem.h" #include "S25FL216K.h" /** Local filesystem made with S25FL216K serial flash memory + USBFileSystem library */ class FlashUSB : public USBFileSystem { public: FlashUSB(PinName mosi, PinName miso, PinName sclk, PinName cs); virtual int disk_initialize(); virtual int _disk_write(const uint8_t * data, uint64_t block); virtual int disk_read(uint8_t * data, uint64_t block); virtual int _disk_status(); virtual int disk_sync(); virtual uint64_t disk_sectors(); protected: int _status; S25FL216K flash; }; #endif