#ifndef _SR_FAL_DEF_H
#define _SR_FAL_DEF_H

#include "sr_config.h"
#include "board_config.h"


#if  0  //参考
{
    /*  part name,     flash name,     offset,       size*/
#ifdef SR_FAL_USE_BOOTLOADER
    {"bootloader", "onchip_flash", 0x00000000, 0x00020000},
    {       "cfg", "onchip_flash", 0x00020000, 0x00020000},
    {       "app", "onchip_flash", 0x00040000, 0x00040000},
    {  "download", "onchip_flash", 0x00080000, 0x00080000},
#endif
    {       "param",     "onchip", 0x00000000, 8*1024},
    {       "param2",    "onchip", 8*1024, 4*1024},

#ifdef SR_FAL_USE_EXTERN_FLASH
    {"diff_patch", "nor_flash"   , 0x00000000, 0x00100000},
    {    "backup", "nor_flash"   , 0x00100000, 0x00100000},
    { "easyflash", "nor_flash"   , 0x00200000, 0x00080000},
    {"wifi_image", "nor_flash"   , 0x00280000, 0x00080000},
    {      "font", "nor_flash"   , 0x00300000, 0x00700000},
    {"filesystem", "nor_flash"   , 0x00a00000, 0x00600000},
#endif
};

#endif


//默认fal分区
#ifndef SR_FAL_PART_DEF
/*	part name,	 flash name,	  offset,	  size*/
#define SR_FAL_PART_DEF    {  \
    { "param",    "onchip",    0x00000000,    8*1024}, \
    {"param2",    "onchip",    8*1024,        4*1024}, \
}

#endif

#endif
