Commit 39993776 authored by 陈家乐's avatar 陈家乐

🐞 fix:580外发使用的变量初始化

parent e414aefc
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#include "Components.h" #include "Components.h"
#include "Application.h" #include "Application.h"
uint16_t CAN_TX_Count = 0; //uint16_t CAN_TX_Count = 0;
uint16_t AliveCountTimer = 0; uint16_t AliveCountTimer = 0;
uint8_t Power_KL30_Init_flag = 0; uint8_t Power_KL30_Init_flag = 0;
uint8_t AliveCount_KL30_ResettingFlag = 0; uint8_t AliveCount_KL30_ResettingFlag = 0;
...@@ -19,7 +19,8 @@ void CAN_TX_Flag_Init(void) ...@@ -19,7 +19,8 @@ void CAN_TX_Flag_Init(void)
void CAN_TX_Count_Init(void) void CAN_TX_Count_Init(void)
{ {
CAN_TX_Count = 0; //CAN_TX_Count = 0;
CAN_Send_Cound = 0;
if(AliveCount_KL30_ResettingFlag > 0) if(AliveCount_KL30_ResettingFlag > 0)
{ {
AliveCount_KL30_ResettingFlag = 0; AliveCount_KL30_ResettingFlag = 0;
......
...@@ -9,6 +9,7 @@ __align(4) ...@@ -9,6 +9,7 @@ __align(4)
uint32_t pRXBuff[CAN_RX_MSG_Block * CAN_CH0_ID_TOTAL_MAX]; uint32_t pRXBuff[CAN_RX_MSG_Block * CAN_CH0_ID_TOTAL_MAX];
uint32_t pTXBuff[CAN_TX_MSG_Block * CAN_CH0_ID_SEND_TOTAL]; uint32_t pTXBuff[CAN_TX_MSG_Block * CAN_CH0_ID_SEND_TOTAL];
static RSCAN0BusoffMonitorStruct RSCAN0Busoff; static RSCAN0BusoffMonitorStruct RSCAN0Busoff;
uint8_t CAN_Send_Cound = 0;
void Can_Init(void) void Can_Init(void)
{ {
...@@ -396,9 +397,8 @@ uint8_t Get_Busoff_Status(void) ...@@ -396,9 +397,8 @@ uint8_t Get_Busoff_Status(void)
{ {
return get_can_busoff(CAN_CH_0); return get_can_busoff(CAN_CH_0);
} }
//extern uint8_t Can_341_Flg;
//extern uint8_t Can_580Send_flag;
uint8_t CAN_Send_Cound = 0;
extern uint8_t Tpms_TX_Flag; extern uint8_t Tpms_TX_Flag;
uint8_t COM_APP_Process(st_CAN_Msg *Msg) uint8_t COM_APP_Process(st_CAN_Msg *Msg)
......
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