diff options
| author | hathach <[email protected]> | 2013-06-21 13:11:16 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-06-21 13:11:45 +0700 |
| commit | 3924764dff9d90ccff09e1d657c6f40ed8def8d9 (patch) | |
| tree | c3b124a2f9a76be89cbb34d36a38678d0fb3e8b2 /tinyusb/core | |
| parent | 743e5a7a930b7e22d85ed1ae9714d42e75ef43c6 (diff) | |
[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
Diffstat (limited to 'tinyusb/core')
| -rw-r--r-- | tinyusb/core/tusb_types.h | 10 |
1 files changed, 7 insertions, 3 deletions
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 , |
