config.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef _CONFIG_H__
  2. #define _CONFIG_H__
  3. /*
  4. * sharkgulf config file
  5. * all config for this board/project is defined here
  6. */
  7. /* ==================== hardware version ============== */
  8. #define HARDWARE_PCB_VER 10 //1.0
  9. /* ==================== can defines here ============== */
  10. #define CAN_COMMUNICATION_SPEC_V1P4
  11. #define CAN0_SPEED 250
  12. #define CAN_NODE_ADDR_ACU 0x41 /*audio*/
  13. #define CAN_NODE_ADDR_BMS 0x42
  14. #define CAN_NODE_ADDR_CCU 0x43
  15. #define CAN_NODE_ADDR_PC 0x45
  16. #define CAN_NODE_ADDR_CCU_AUX 0x46
  17. #define CAN_NODE_ADDR_MCU 0x4D
  18. #define CAN_NODE_ADDR_DCU 0x50 /* MCU of the display panel */
  19. #define CAN_NODE_ADDR_BLE 0x51 /*radar*/
  20. #define CAN_NODE_ADDR_RCU 0x52 /*radar*/
  21. #define CAN_NODE_ADDR_MODEM 0x55 /*MODEM*/
  22. #define CAN_NODE_ADDR_DCU_AUX 0x60 /* 显示屏虚拟can地址,不在can 总线上暴露*/
  23. #define CAN_NODE_ADDR_TRACE 0x70 /*trace*/
  24. #define CAN_NODE_ADDR_AT 0x71 /*AT*/
  25. #define CAN_NODE_ADDR_TRACE2 0x72 /*AT*/
  26. #define CAN_NODE_ADDR_FF 0x7F /*broadcast*/
  27. #define CAN_NODE_BATT_MCAST 0x73 /* 电池信息的组播 */
  28. #define CAN_NODE_VINFO_MCAST 0x74 /* 车辆信息的组播,电门,设法,报警等 */
  29. #define CAN_MY_ADDRESS CAN_NODE_ADDR_DCU
  30. #define IAP_MAGIC_SUCCESS 0x11223344
  31. #define IAP_MAGIC_FLASH 0xAABBCCDD
  32. #define BUILD_CMD_KEY(key) (CAN_MY_ADDRESS << 8 | (key))
  33. #endif /* _CONFIG_H__ */