From 9a81cbcd59cb64bce4c24cbffed2b02eaea5d2b2 Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 11 Nov 2013 13:52:31 +0700 Subject: remove xfer_type in endpoint_handle_t cdc device demo runs on lpc13uxx --- tinyusb/device/dcd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tinyusb/device/dcd.h') diff --git a/tinyusb/device/dcd.h b/tinyusb/device/dcd.h index 5f90bde1e..15f658896 100644 --- a/tinyusb/device/dcd.h +++ b/tinyusb/device/dcd.h @@ -53,7 +53,7 @@ typedef struct { uint8_t coreid; - uint8_t xfer_type; // TODO redundant, cannot be control as control uses separated API + uint8_t reserved; // TODO redundant, cannot be control as control uses separated API uint8_t index; uint8_t class_code; } endpoint_handle_t; @@ -61,13 +61,13 @@ typedef struct { static inline bool endpointhandle_is_valid(endpoint_handle_t edpt_hdl) ATTR_CONST ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT; static inline bool endpointhandle_is_valid(endpoint_handle_t edpt_hdl) { - return (edpt_hdl.xfer_type != TUSB_XFER_CONTROL) && (edpt_hdl.class_code != 0); + return (edpt_hdl.class_code != 0); } static inline bool endpointhandle_is_equal(endpoint_handle_t x, endpoint_handle_t y) ATTR_CONST ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT; static inline bool endpointhandle_is_equal(endpoint_handle_t x, endpoint_handle_t y) { - return (x.coreid == y.coreid) && (x.xfer_type == y.xfer_type) && (x.index == y.index) && (x.class_code == y.class_code); + return (x.coreid == y.coreid) && (x.index == y.index) && (x.class_code == y.class_code); } tusb_error_t dcd_init(void) ATTR_WARN_UNUSED_RESULT; -- cgit v1.3.1