#ifndef _CONFIG_H__
#define _CONFIG_H__
/*
* sharkgulf config file
* all config for this board/project is defined here
*/
/* ==================== hardware version ============== */
#define HARDWARE_PCB_VER 10 //1.0

/* ==================== can defines here ============== */
#define CAN_COMMUNICATION_SPEC_V1P4
#define CAN0_SPEED 250

#define  CAN_NODE_ADDR_ACU  		0x41	/*audio*/
#define  CAN_NODE_ADDR_BMS  		0x42
#define  CAN_NODE_ADDR_CCU  		0x43
#define  CAN_NODE_ADDR_PC  			0x45
#define  CAN_NODE_ADDR_CCU_AUX      0x46
#define  CAN_NODE_ADDR_MCU  		0x4D
#define  CAN_NODE_ADDR_DCU  		0x50	/* MCU of the display panel */
#define  CAN_NODE_ADDR_BLE  		0x51	/*radar*/
#define  CAN_NODE_ADDR_RCU  		0x52	/*radar*/
#define  CAN_NODE_ADDR_MODEM	 	0x55	/*MODEM*/
#define  CAN_NODE_ADDR_DCU_AUX      0x60    /* 显示屏虚拟can地址，不在can 总线上暴露*/
#define  CAN_NODE_ADDR_TRACE	    0x70	/*trace*/
#define  CAN_NODE_ADDR_AT	        0x71	/*AT*/
#define  CAN_NODE_ADDR_TRACE2	    0x72	/*AT*/
#define  CAN_NODE_ADDR_FF	 		0x7F	/*broadcast*/
#define  CAN_NODE_BATT_MCAST        0x73    /* 电池信息的组播 */
#define  CAN_NODE_VINFO_MCAST       0x74    /* 车辆信息的组播,电门，设法，报警等 */
#define  CAN_MY_ADDRESS  			CAN_NODE_ADDR_MCU

#define IAP_MAGIC_SUCCESS		0x11223344
#define IAP_MAGIC_FLASH			0xAABBCCDD

#define BUILD_CMD_KEY(key)		(CAN_MY_ADDRESS << 8 | (key))

#endif /* _CONFIG_H__ */

