
A board support package for the LPC4088 Display Module.
Dependencies: DM_HttpServer DM_USBHost
Dependents: lpc4088_displaymodule_emwin lpc4088_displaymodule_demo_sphere sampleGUI sampleEmptyGUI ... more
Fork of DMSupport by
Revision 37:07659b5d90ce, committed 2015-03-23
- Comitter:
- alindvall
- Date:
- Mon Mar 23 13:45:16 2015 +0000
- Parent:
- 36:92193dc72995
- Child:
- 38:420cdc281467
- Commit message:
- - Added file system getters for MCI and QSPI file systems to the DMBoard class. This gives access to the cardInserted(), isformatted() and format() functions.; - Removed unused parameter in SPIFI class; - Fixed caching issue in Registry class
Changed in this revision
--- a/DMBoard.h Fri Mar 20 14:44:06 2015 +0000 +++ b/DMBoard.h Mon Mar 23 13:45:16 2015 +0000 @@ -148,6 +148,32 @@ */ Registry* registry() { return &Registry::instance(); } #endif + +#if defined(DM_BOARD_USE_MCI_FS) + /** Returns the MCI File System instance. + * + * Can be used to call e.g. cardInserted(). + * + * @returns + * The file system instance + */ + MCIFileSystem* getMciFS() { return &_mcifs; } +#else + void* getMciFS() { return NULL; } +#endif +#if defined(DM_BOARD_USE_QSPI_FS) + /** Returns the QSPI File System instance. + * + * Can be used to call e.g. isformatted() and format(). + * + * @returns + * The file system instance + */ + QSPIFileSystem* getQspiFS() { return &_qspifs; } +#else + void* getQspiFS() { return NULL; } +#endif + private:
--- a/Memory/SPIFI.cpp Fri Mar 20 14:44:06 2015 +0000 +++ b/Memory/SPIFI.cpp Mon Mar 23 13:45:16 2015 +0000 @@ -257,7 +257,7 @@ return Ok; } -SPIFI::SpifiError SPIFI::erase(uint32_t dest, unsigned len, char* src, bool verify, char* scratch) +SPIFI::SpifiError SPIFI::erase(uint32_t dest, unsigned len, bool verify, char* scratch) { SPIFIopers opers; opers.dest = (char *)dest;
--- a/Memory/SPIFI.h Fri Mar 20 14:44:06 2015 +0000 +++ b/Memory/SPIFI.h Mon Mar 23 13:45:16 2015 +0000 @@ -198,7 +198,7 @@ * Ok on success * An error code on failure */ - SpifiError erase(uint32_t dest, unsigned len, char* src, bool verify=false, char* scratch=NULL); + SpifiError erase(uint32_t dest, unsigned len, bool verify=false, char* scratch=NULL); private:
--- a/Registry.cpp Fri Mar 20 14:44:06 2015 +0000 +++ b/Registry.cpp Mon Mar 23 13:45:16 2015 +0000 @@ -294,6 +294,7 @@ err = EEPROMWriteError; break; } + _modified[i] = false; } }