|
@@ -1164,7 +1164,7 @@ UINT8 HAL_Can_Receive(CAN_Msg_Type *CanRxMsgBuffer)
|
|
CAN_ReadReg(RXB0D0 + j, 1, &((CanRxMsgBuffer[0]).Data[j]));
|
|
CAN_ReadReg(RXB0D0 + j, 1, &((CanRxMsgBuffer[0]).Data[j]));
|
|
j++;
|
|
j++;
|
|
}
|
|
}
|
|
- #ifdef USING_PRINTF
|
|
|
|
|
|
+ #ifdef USING_PRINTF1
|
|
printf("1-buffer0 ID = %x\n", CanRxMsgBuffer[0].Id);
|
|
printf("1-buffer0 ID = %x\n", CanRxMsgBuffer[0].Id);
|
|
// for(j=0;j<8;j++)
|
|
// for(j=0;j<8;j++)
|
|
// {
|
|
// {
|
|
@@ -1203,7 +1203,7 @@ UINT8 HAL_Can_Receive(CAN_Msg_Type *CanRxMsgBuffer)
|
|
j++;
|
|
j++;
|
|
}
|
|
}
|
|
|
|
|
|
- #ifdef USING_PRINTF
|
|
|
|
|
|
+ #ifdef USING_PRINTF1
|
|
printf("1-buffer1 ID = %x\n", CanRxMsgBuffer[1].Id);
|
|
printf("1-buffer1 ID = %x\n", CanRxMsgBuffer[1].Id);
|
|
// for(j=0;j<8;j++)
|
|
// for(j=0;j<8;j++)
|
|
// {
|
|
// {
|
|
@@ -1242,7 +1242,7 @@ UINT8 HAL_Can_Receive(CAN_Msg_Type *CanRxMsgBuffer)
|
|
CAN_ReadReg(RXB0D0 + j, 1, &((CanRxMsgBuffer[0]).Data[j]));
|
|
CAN_ReadReg(RXB0D0 + j, 1, &((CanRxMsgBuffer[0]).Data[j]));
|
|
j++;
|
|
j++;
|
|
}
|
|
}
|
|
-#ifdef USING_PRINTF
|
|
|
|
|
|
+#ifdef USING_PRINTF1
|
|
printf("2-buffer0 ID = %x\n", CanRxMsgBuffer[0].Id);
|
|
printf("2-buffer0 ID = %x\n", CanRxMsgBuffer[0].Id);
|
|
for (j = 0; j < 8; j++)
|
|
for (j = 0; j < 8; j++)
|
|
{
|
|
{
|
|
@@ -1277,7 +1277,7 @@ UINT8 HAL_Can_Receive(CAN_Msg_Type *CanRxMsgBuffer)
|
|
j++;
|
|
j++;
|
|
}
|
|
}
|
|
|
|
|
|
-#ifdef USING_PRINTF
|
|
|
|
|
|
+#ifdef USING_PRINTF1
|
|
printf("2-buffer1 ID = %x\n", CanRxMsgBuffer[1].Id);
|
|
printf("2-buffer1 ID = %x\n", CanRxMsgBuffer[1].Id);
|
|
for (j = 0; j < 8; j++)
|
|
for (j = 0; j < 8; j++)
|
|
{
|
|
{
|