/* 
 * File:   ChaletPowerRelay.h
 * Author: JF
 *
 * Created on November 30, 2018, 7:33 PM
 */

#ifndef FLASHMAPPING_H
#define	FLASHMAPPING_H
#include "define.h"

/*
0x180000	Firmware flags
0x180004	Nb Records
0x180008	Firmware Size
0x18000C	Version code
*/

#define FLASH_END_ADDRESS 180000

#define FLASH_BTLDR_FIRMWARE_START_ADDRESS 0x180000
#define FLASH_BTLDR_FIRMWARE_LAST_64K_SECTOR_ADD 0x1F0000
#define FLASH_BTLDR_FLAGS_ADDRESS 0x000000
#define FLASH_WIFI_IP_ADDRESS 0X00000C
#define FLASH_WIFI_GATEWAY_ADDRESS 0x000010
#define FLASH_USE_DHCP_FLAG_ADDRESS 0x000014
#define FLASH_WIFI_ACCESS_PT_NAME_LENGTH_ADDRESS 0X000015
#define FLASH_WIFI_ACCESS_PT_NAME_ADDRESS 0x000016
#define FLASH_WIFI_ACCESS_PT_PASSWD_LENGTH_ADDRESS 0x000056
#define FLASH_WIFI_ACCESS_PT_PASSWD_ADDRESS 0x000057
#define FLASH_LAST_ADDRESS 0X000097




#define FLASH_BTLDR_HEADER_SIZE 24



#endif	/* HARAKIRIRELAY_H */
