From 3924764dff9d90ccff09e1d657c6f40ed8def8d9 Mon Sep 17 00:00:00 2001 From: hathach Date: Fri, 21 Jun 2013 13:11:16 +0700 Subject: [host lpc43xx] adding support for host custom class refractor usbh class driver indexing opt out periodic list code in EHCI (need to refractor/group later) [device lpc176x] rename dcd_endpoint_configure to dcd_pipe_open add usbd_pipe_open to manage pipe --- tinyusb/core/tusb_types.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'tinyusb/core') diff --git a/tinyusb/core/tusb_types.h b/tinyusb/core/tusb_types.h index 35cb07cd8..ceabb6484 100644 --- a/tinyusb/core/tusb_types.h +++ b/tinyusb/core/tusb_types.h @@ -70,10 +70,13 @@ typedef enum { }tusb_transfer_type_t; typedef enum { - TUSB_DIR_HOST_TO_DEV = 0, - TUSB_DIR_DEV_TO_HOST = 1 + TUSB_DIR_HOST_TO_DEV = 0, + TUSB_DIR_DEV_TO_HOST = 1, + + TUSB_DIR_DEV_TO_HOST_MASK = 0x80 }tusb_direction_t; + /// USB Descriptor Types (section 9.4 table 9-5) typedef enum { TUSB_DESC_TYPE_DEVICE =1 , ///< 1 @@ -137,7 +140,8 @@ typedef enum { TUSB_CLASS_PERSONAL_HEALTHCARE = 15 , ///< 15 TUSB_CLASS_AUDIO_VIDEO = 16 , ///< 16 - TUSB_CLASS_MAX_CONSEC_NUMBER = 17 , // TODO compact & minimize this number + TUSB_CLASS_MAPPED_INDEX_START = 17 , // TODO compact & minimize this number + TUSB_CLASS_MAPPED_INDEX_END = TUSB_CLASS_MAPPED_INDEX_START + 5, TUSB_CLASS_DIAGNOSTIC = 0xDC , TUSB_CLASS_WIRELESS_CONTROLLER = 0xE0 , -- cgit v1.3.1