#ifndef __PARTITION_H__
#define __PARTITION_H__

#ifdef __cplusplus
 extern "C" {
#endif

#define ADDR_BOOT     (0x08000000)

#define SECTOR_FW0     (FLASH_Sector_5)
#define SECTOR_FW1     (FLASH_Sector_6)
#define SECTOR_FW2     (FLASH_Sector_7)
#define ADDR_FW        (0x08020000)
#define SIZE_FW_SECTOR (128 * 1024)
 
#define SECTOR_CONFIG  (FLASH_Sector_8)
#define ADDR_CONFIG    (0x08080000)
#define SIZE_CONFIG    (128 * 1024)
 
#define SECTOR_BITMAP  (FLASH_Sector_9)
#define ADDR_BITMAP    (0x080A0000)
#define ADDR_GAS1      (ADDR_BITMAP + 0 * 1024)
#define ADDR_GAS2      (ADDR_BITMAP + 20 * 1024)
#define ADDR_GAS3      (ADDR_BITMAP + 40 * 1024)
#define ADDR_GAS4      (ADDR_BITMAP + 60 * 1024)
#define ADDR_MAIN      (ADDR_BITMAP + 80 * 1024)
#define SIZE_BITMAP    (128 * 1024)
 
#define SECTOR_CALI0   (FLASH_Sector_10)
#define SECTOR_CALI1   (FLASH_Sector_11)
#define ADDR_CALI0     (0x080C0000)
#define ADDR_CALI1     (0x080E0000)

#ifdef __cplusplus
}
#endif

#endif /* __PARTITION_H__ */
