Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of d7a_1x by
Diff: include/d7a_fs.h
- Revision:
- 38:c1e7f97ab396
- Parent:
- 37:e04613e021f2
- Child:
- 41:a924aa709b6f
- Child:
- 43:28202405094d
--- a/include/d7a_fs.h Wed Aug 24 17:31:51 2016 +0000 +++ b/include/d7a_fs.h Thu Aug 25 09:38:40 2016 +0000 @@ -97,14 +97,25 @@ // Memory "TYPE" #define FS_TYPE_DISTANT 0x80 -enum { NOFILE = 0, - PFLASH, - EEPROM, - RAM, +#define FS_PHY_TYPE(t) ((t)&0x0F) +#define FS_COM_TYPE(t) ((t)&0xF0) +enum { + // Markers + NOFILE = 0, + ERASED = 0xff, + // Physical Type + PFLASH = 1, + EEPROM = 2, + RAM = 3, + UNKNOWN = 0xF, + // PSRAM + // DDR + // ...etc + // COM Type for 'distant' files + HOST = FS_TYPE_DISTANT + (1<<4), // Distant HST_COM Files + SPI = FS_TYPE_DISTANT + (2<<4), + I2C = FS_TYPE_DISTANT + (3<<4), - HOST = 0x80 + 0x10, // Distant HST_COM Files - - ERASED = 0xff }; // File "Storage Class" enum { TRANSIENT=0, VOLATILE, RESTORABLE, PERMANENT};