From c42509f68ab2d4a07867e3d18b50947f30bb14fe Mon Sep 17 00:00:00 2001 From: Frank Voorburg Date: Tue, 18 Oct 2016 10:47:20 +0000 Subject: [PATCH] Refs #144. - Fixed compile errors in XCP module when no communication interfaces are enabled in blt_conf.h. git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@158 5dc33758-31d5-4daf-9ae8-b24bf3d40d73 --- Target/Source/xcp.c | 3 ++- Target/Source/xcp.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 *~~~~~***********************************/