Implementation of a LocalFileSystem using S25FL216K serial flash memory. Currently only 256kB available!
Fork of S25FL216K_USBFileSystem by
Flash_USBFileSystem.h
- Committer:
- mkilivan
- Date:
- 2014-12-19
- Revision:
- 4:2642d0729f55
- Parent:
- 0:9056eb697726
File content as of revision 4:2642d0729f55:
#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