Fork to support Mouse boot protocol and steam controllers.
Fork of USBHOST by
Diff: USBHost/USBHostTypes.h
- Revision:
- 5:fc157e6bd5a5
- Parent:
- 3:1c76b46ad779
--- a/USBHost/USBHostTypes.h Fri Feb 17 12:40:57 2017 +0100 +++ b/USBHost/USBHostTypes.h Wed Apr 26 18:11:37 2017 +0200 @@ -18,7 +18,7 @@ #define USB_INC_H #include "mbed.h" -#include "toolchain.h" +#include "mbed_toolchain.h" enum USB_TYPE { USB_TYPE_OK = 0, @@ -117,6 +117,8 @@ #else +#define TD_TIMEOUT_CTRL 100 +#define TD_TIMEOUT 2000 #define TD_SETUP (uint32_t)(0) // Direction of Setup Packet #define TD_IN (uint32_t)(0x00100000) // Direction In #define TD_OUT (uint32_t)(0x00080000) // Direction Out @@ -158,6 +160,7 @@ __IO uint32_t size; // size of buffer void * ep; // ep address where a td is linked in __IO uint32_t retry; + __IO uint32_t setup; } PACKED HCTD; // ----------- HostController EndPoint Descriptor ------------- typedef struct hcEd {