From 37ef88a6020f71171bd4e6daa0cf2121bd015102 Mon Sep 17 00:00:00 2001 From: Ed Date: Mon, 29 Apr 2019 11:04:20 +0100 Subject: [PATCH] Fix build error when USB not enabled #ifdeffing the whole source as is the way in lib_xua --- lib_xua/src/core/endpoint0/xua_ep0_wrapper.xc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib_xua/src/core/endpoint0/xua_ep0_wrapper.xc b/lib_xua/src/core/endpoint0/xua_ep0_wrapper.xc index 306fc26a..092345a0 100644 --- a/lib_xua/src/core/endpoint0/xua_ep0_wrapper.xc +++ b/lib_xua/src/core/endpoint0/xua_ep0_wrapper.xc @@ -2,6 +2,8 @@ #include #include #include "xua.h" + +#if XUA_USB_EN #include "xua_ep0_wrapper.h" #define DEBUG_UNIT EP0_WRAPPER @@ -46,3 +48,4 @@ void XUA_Endpoint0_select(chanend c_ep0_out, chanend c_ep0_in, client ep0_contro } } } +#endif