From 90b8fe26cc0225f527dc1e4f9cbcd37656200e4d Mon Sep 17 00:00:00 2001 From: xross Date: Mon, 8 Jan 2018 11:37:02 +0000 Subject: [PATCH] Added XUA_ENDPOINT_COUNT_CUSTOM_IN/OUT define --- lib_xua/api/xua_conf_default.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/lib_xua/api/xua_conf_default.h b/lib_xua/api/xua_conf_default.h index 52a26abd..a4273ce5 100644 --- a/lib_xua/api/xua_conf_default.h +++ b/lib_xua/api/xua_conf_default.h @@ -1193,7 +1193,7 @@ enum USBEndpointNumber_In ENDPOINT_NUMBER_IN_IAP_EA_NATIVE_TRANS, #endif #endif - ENDPOINT_COUNT_IN /* End marker */ + XUA_ENDPOINT_COUNT_IN /* End marker */ }; enum USBEndpointNumber_Out @@ -1209,9 +1209,21 @@ enum USBEndpointNumber_Out ENDPOINT_NUMBER_OUT_IAP_EA_NATIVE_TRANS, #endif #endif - ENDPOINT_COUNT_OUT /* End marker */ + XUA_ENDPOINT_COUNT_OUT /* End marker */ }; + +#ifndef XUA_ENDPOINT_COUNT_CUSTOM_OUT +#define XUA_ENDPOINT_COUNT_CUSTOM_OUT 0 +#endif + +#ifndef XUA_ENDPOINT_COUNT_CUSTOM_IN +#define XUA_ENDPOINT_COUNT_CUSTOM_IN 0 +#endif + +#define ENDPOINT_COUNT_IN (XUA_ENDPOINT_COUNT_IN + XUA_ENDPOINT_COUNT_CUSTOM_IN) +#define ENDPOINT_COUNT_OUT (XUA_ENDPOINT_COUNT_OUT + XUA_ENDPOINT_COUNT_CUSTOM_OUT) + #endif /*** Internal defines below here. NOT FOR MODIFICATION ***/