beautypg.com

Zilog EZ80F91AZA User Manual

Page 24

background image

Integrating a Flash Driver

UM017914-1211

14

Zilog File System
User Manual

#define ZFS_TOTAL_NUM_BLOCKS

( 7 )

#define ZFS_TOTAL_NUM_SECTORS

((7 * 0x10000)/ZFS_SEC_SIZE )

#define ZFS_TOTAL_NUM_VOLUMES

( 1 )

ZFS_CONFIG_t g_zfs_cfg = {

"EXTF",

// vol name

ZFS_EXT_FLASH_DEV_TYPE,

// vol type for Flash

// device type

(UINT8*)0x100000,

// vol_start_addr = 0x100000

(7 * 0x10000),

// vol_size (7 * 64KB)

7,

// vol_blocks

((7 * 0x10000)/ZFS_SEC_SIZE),

// number of sectors

MYFLASH_Init,

MYFLASH_Read,

MYFLASH_Write,

MYFLASH_Erase,

MYFLASH_Close

} ;

This manual is related to the following products: