From 7a493ca479a731f40a3f47d4e787d6e69d50b886 Mon Sep 17 00:00:00 2001 From: Daniel Pieczko Date: Wed, 2 Mar 2022 08:58:40 +0000 Subject: [PATCH 1/2] Fix ifdefs/endifs in ep_buffer.xc --- CHANGELOG.rst | 1 + lib_xua/src/core/buffer/ep/ep_buffer.xc | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 10a4cb0b..252450e5 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,7 @@ UNRELEASED ---------- * CHANGED: Exclude HID Report functions unless the HID feature is enabled + * FIXED: Incorrect conditional compilation of HID report code 3.1.0 ----- diff --git a/lib_xua/src/core/buffer/ep/ep_buffer.xc b/lib_xua/src/core/buffer/ep/ep_buffer.xc index a9a9a9a1..fbdbddb0 100644 --- a/lib_xua/src/core/buffer/ep/ep_buffer.xc +++ b/lib_xua/src/core/buffer/ep/ep_buffer.xc @@ -1104,6 +1104,9 @@ void XUA_Buffer_Ep(register chanend c_aud_out, break; } break; +#endif // if IAP_EA_NATIVE_TRANS + +#endif // ifdef IAP default: #if ( 0 < HID_CONTROLS ) @@ -1125,9 +1128,6 @@ void XUA_Buffer_Ep(register chanend c_aud_out, #endif break; //:: -#endif - -#endif } From c027e2df186246fcb2812a308d81bb35574d9ee6 Mon Sep 17 00:00:00 2001 From: Daniel Pieczko Date: Wed, 2 Mar 2022 13:43:54 +0000 Subject: [PATCH 2/2] Include xua_conf_full.h before checking HID_CONTROLS to ensure it's defined --- lib_xua/src/hid/hid_report.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib_xua/src/hid/hid_report.c b/lib_xua/src/hid/hid_report.c index 325aee9f..587840c4 100644 --- a/lib_xua/src/hid/hid_report.c +++ b/lib_xua/src/hid/hid_report.c @@ -1,5 +1,6 @@ // Copyright 2021-2022 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. +#include "xua_conf_full.h" #if( 0 < HID_CONTROLS ) #include