Обновление

This commit is contained in:
cfif 2025-10-30 15:14:02 +03:00
parent 4843726a10
commit 89763042be
2 changed files with 9 additions and 0 deletions

View File

@ -59,6 +59,8 @@ static void vCanPort_InitCAN0RxTxPin() {
GPIO_InitPins(GPIO_C, &tGpioInitStruct);
}
uint32_t IdCanFilter[2] = {PROTOCOL_XCP_ID, 1};
static void vCanPort_InitCan0() {
vCanPort_InitCAN0RxTxPin();
@ -76,6 +78,9 @@ static void vCanPort_InitCan0() {
(uint8_t *)&g_aRxDataBuf[0],
2,
IdCanFilter,
DMA1_IRQn,
0x55,
1,

View File

@ -7,6 +7,10 @@
#include "CanSerialPortFrame.h"
#define PROTOCOL_XCP_ID 0x123
#define PROTOCOL_XCP 0
typedef struct {
tCanSerialPortFrameFlagchip Can0;
tSerialPortFrameIO Can0_IO;