diff --git a/Target/Source/xcp.c b/Target/Source/xcp.c index c73af894..d9b565c3 100644 --- a/Target/Source/xcp.c +++ b/Target/Source/xcp.c @@ -32,6 +32,7 @@ #include "boot.h" /* bootloader generic header */ +#if (BOOT_COM_ENABLE > 0) /**************************************************************************************** * Defines ****************************************************************************************/ @@ -1338,6 +1339,6 @@ static void XcpCmdProgramPrepare(blt_int8u *data) } /*** end of XcpCmdProgramPrepare ***/ #endif /* XCP_RES_PROGRAMMING_EN == 1 */ - +#endif /* BOOT_COM_ENABLE > 0 */ /******************************** end of xcp.c *****************************************/ diff --git a/Target/Source/xcp.h b/Target/Source/xcp.h index 3ae0a7af..43e09c60 100644 --- a/Target/Source/xcp.h +++ b/Target/Source/xcp.h @@ -28,6 +28,7 @@ #ifndef XCP_H #define XCP_H +#if (BOOT_COM_ENABLE > 0) /**************************************************************************************** * Configuration ****************************************************************************************/ @@ -227,5 +228,6 @@ void XcpPacketReceived(blt_int8u *data); #endif +#endif /* BOOT_COM_ENABLE > 0 */ #endif /* XCP_H */ /******************************** end of xcp.h *~~~~~***********************************/