diff options
| author | hathach <[email protected]> | 2013-11-11 13:52:31 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-11-11 13:52:31 +0700 |
| commit | 9a81cbcd59cb64bce4c24cbffed2b02eaea5d2b2 (patch) | |
| tree | 330753795816974e1a9832438128c5433e1f4166 /tinyusb/device/dcd.h | |
| parent | f00a4b448d85c4cf36edb8dc7245d7c3fa1c07ec (diff) | |
remove xfer_type in endpoint_handle_t
cdc device demo runs on lpc13uxx
Diffstat (limited to 'tinyusb/device/dcd.h')
| -rw-r--r-- | tinyusb/device/dcd.h | 6 |
1 files changed, 3 insertions, 3 deletions
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; |
