25 #ifndef _ONCHIPFLASH_H_ 26 #define _ONCHIPFLASH_H_ 29 #include "basictypes.h" 32 #define FLASH_NAME "S29GL032A" 34 extern int fs_phy_OnChipFlash( FS_FLASH *flash );
38 #define FS_FLASHBASE ( 0xFF800000 ) 97 #define BLOCKSIZE ( 64 * 1024 ) // Use only the 64k sectors 98 #define SECTORSIZE ( 16 * 1024 ) // 4 sectors per block 99 #define SECTORPERBLOCK ( BLOCKSIZE / SECTORSIZE ) 107 #define FLASH_SIZE ( 4 * 1024 * 1024 ) // Size of total flash in the system, 4MB 108 #define FS_SIZE ( 1024 * 1024 ) // Amount allocated to file system, 1MB 109 #define FIRST_ADDR ( FLASH_SIZE - FS_SIZE ) // First file system address to use in the flash 110 #define BLOCKSTART ( 2 ) // First block where file system data starts (first 2 blocks are DESCRIPTORS) 122 #define DESCSIZE ( 8 * 1024 ) // Size of one descriptor 123 #define DESCBLOCKSTART ( 0 ) // Position of first descriptor 124 #define DESCBLOCKEND ( 1 ) // Position of last descriptor 125 #define DESCCACHE ( 2048 ) Embedded Flash File System API - STD.
NetBurner Hardware Abstraction Layer (HAL)