12 #ifndef _ONCHIPFLASH_H_ 13 #define _ONCHIPFLASH_H_ 16 #include "basictypes.h" 20 #define FLASH_NAME "SAME70Q21" 23 extern int fs_phy_OnChipFlash( FS_FLASH *flash );
27 #define FS_FLASHBASE (0x00400000) 106 #define BLOCKSIZE ( 16*512 ) // flash physical "sector" size 107 #define SECTORSIZE ( 512 ) // file system sectors per BLOCK 108 #define SECTORPERBLOCK (BLOCKSIZE/SECTORSIZE) 115 #define FLASH_SIZE ( 2*1024*1024 ) // size of total flash in the system, 32MB 116 #define FS_SIZE ( 256*512 ) // amount allocated to file system: 2 Desc. plus 1MB for data (8 x 128k) 118 #define FIRST_ADDR (FLASH_SIZE - FS_SIZE) // first file system address to use in the flash 119 #define BLOCKSTART 2 // first block where file system data starts 132 #define DESCSIZE ( 16*512 ) // size of one descriptor 133 #define DESCBLOCKSTART 0 // position of first descriptor 134 #define DESCBLOCKEND 1 // position of last descriptor 135 #define DESCCACHE 1024 Embedded Flash File System API - STD.
NetBurner Hardware Abstraction Layer (HAL)