12 #ifndef _ONCHIPFLASH_H_ 13 #define _ONCHIPFLASH_H_ 16 #include "basictypes.h" 20 #define FLASH_NAME "MX29GL256" 23 extern int fs_phy_OnChipFlash( FS_FLASH *flash );
27 #define FS_FLASHBASE (0xC0000000) 100 #define BLOCKSIZE ( 128*1024 ) // flash physical "sector" size 101 #define SECTORSIZE ( 1*1024 ) // file system sectors per BLOCK 102 #define SECTORPERBLOCK (BLOCKSIZE/SECTORSIZE) 109 #define FLASH_SIZE ( 32*1024*1024 ) // size of total flash in the system, 32MB 110 #define FS_SIZE ( 1280*1024 ) // amount allocated to file system: 2 Desc. plus 1MB for data (8 x 128k) 112 #define FIRST_ADDR (FLASH_SIZE - FS_SIZE) // first file system address to use in the flash 113 #define BLOCKSTART 2 // first block where file system data starts 126 #define DESCSIZE ( 128*1024 ) // size of one descriptor 127 #define DESCBLOCKSTART 0 // position of first descriptor 128 #define DESCBLOCKEND 1 // position of last descriptor 129 #define DESCCACHE 2048 Embedded Flash File System API - STD.
NetBurner Hardware Abstraction Layer (HAL)