From d8423075e9ee26e0d9a2b2362a084d642a8cf125 Mon Sep 17 00:00:00 2001 From: cfif Date: Fri, 16 Jan 2026 13:32:43 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Inc/CanSerialPortFrameXCP.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Inc/CanSerialPortFrameXCP.h b/Inc/CanSerialPortFrameXCP.h index 5dd569a..c3e7923 100644 --- a/Inc/CanSerialPortFrameXCP.h +++ b/Inc/CanSerialPortFrameXCP.h @@ -12,15 +12,6 @@ #include "SystemMutexCmsis.h" #include "VarsTabDumpObserver.h" -#define LOG_XCP 1 - -#define PROTOCOL_CAN_ADR_XCP 0x250 -#define PROTOCOL_CAN_TYPE_XCP 0x0 - -#define PROTECT_CAL_PAG 1 -#define PROTECT_DAQ 1 -#define PROTECT_STIM 1 -#define PROTECT_PGM 1 typedef enum { XCP_ERR_CMD_SYNCH = 0x00, @@ -232,6 +223,16 @@ typedef struct __attribute__ ((packed)) { uint8_t ODT_ENTRY_NUMBER; } eXcpCommand_SET_DAQ_PTR; +#define LOG_XCP 1 + +#define PROTOCOL_CAN_ADR_XCP 0x250 +#define PROTOCOL_CAN_TYPE_XCP 0x0 + +#define PROTECT_CAL_PAG 1 +#define PROTECT_DAQ 1 +#define PROTECT_STIM 1 +#define PROTECT_PGM 1 + #define SECT_SRAM_XCP __attribute__((section (".xcpdata"))) #define MASTER_BLOCK_MODE 0