Commit 136d9a78 authored by 李延凯's avatar 李延凯

fix: 修改项目信息, 与Boot程序适配

parent fea9122b
......@@ -11,32 +11,23 @@
#include "CAN_CH0_CAN_Communication_Matrix.h"
typedef struct
{
uint8_t ProjecName[16]; // 项目名
uint8_t PartNumber[16]; // 零件号
uint8_t PlatForm[16]; // 平台
struct
{
uint8_t type[16]; //标准*
uint8_t ch[16]; //通道*
uint8_t baudrate[16]; //速率*
uint32_t diagID[4]; //诊断ID*
}DiagCanCfg[1]; //(诊断CAN)通道配置*
} ProjectInfoStruct;
uint8_t u8_ProgramName[32];
uint8_t u8_PartNumber[32];
uint8_t u8_Platform[32];
uint8_t u8_Communication_Type[32];
uint32_t u8_Diagnostic_ID[4];
} program_info_t;
extern void UDS_Service_Response(uint8_t si, uint8_t RspType, uint16_t A_TA_type, uint16_t A_Length, uint8_t *A_Data);
/*诊断使用, 判断App一致性, 禁止修改(内部版本号除外)*/
extern const ProjectInfoStruct ProjectInfo __attribute__((section(".ARM.__at_0x0000C200"))) =
/* 豪进750TFT仪表信息, 诊断使用, 禁止修改 */
extern const program_info_t program_info __attribute__((section(".ARM.__at_0x0000C200"))) =
{
"HJ_750_TFT", // 豪进750TFT仪表
"HJ_750_TFT",
"HJYB-7500TFT",
"BAT32A279KM64FB", // 中微芯片
{
"CAN_STD",
"CAN_CH_0",
"CAN_500Kbps",
{DIAG_ID_Tx, DIAG_ID_Rx_PHY, DIAG_ID_Rx_FUN, 0}
}
"BAT32A279KM64FB",
"CAN_STD_CH0_500Kbps",
{DIAG_ID_Tx, DIAG_ID_Rx_PHY, DIAG_ID_Rx_FUN, 0U}
};
DiagSendDataNeg NegRes;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment