mirror of
https://github.com/marqs85/ossc
synced 2026-11-02 13:17:18 +03:00
Profile support added.
This commit is contained in:
1 parent
79f215d41e
commit
0f8439abf3
14 files changed
+298
-138
No files matched your search
@@ -27,9 +27,10 @@
|
||||
// EPCS16 pagesize is 256 bytes
|
||||
// Flash is split 50-50 to FW and userdata, 1MB each
|
||||
#define PAGESIZE 256
|
||||
#define PAGES_PER_SECTOR 256
|
||||
#define PAGES_PER_SECTOR 256 //EPCS "sector" corresponds to "block" on Spansion flash
|
||||
#define SECTORSIZE (PAGESIZE*PAGES_PER_SECTOR)
|
||||
#define USERDATA_OFFSET 0x100000
|
||||
#define USERDATA_MAX_SIZE 0x1000 //4KB should be enough
|
||||
#define MAX_USERDATA_ENTRY 15 // 16 sectors for userdata
|
||||
|
||||
int check_flash();
|
||||
|
||||
|
||||
Reference in new issue
Block a user