diff options
| author | hathach <[email protected]> | 2013-03-13 11:20:02 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-03-13 11:20:02 +0700 |
| commit | 97c436a16ee6de7852c5cb77fa4359a5f00f4c46 (patch) | |
| tree | a4c4685fee6f233f5b084440cb6f0dd493b84538 /tinyusb/core | |
| parent | 97c9001d401b217b383046b6af3b8fd957e835f4 (diff) | |
add usbh_pipe_control_close (in conjunction with usbh pipe control open)
close control pipe when unplugged
Diffstat (limited to 'tinyusb/core')
| -rw-r--r-- | tinyusb/core/tusb_types.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tinyusb/core/tusb_types.h b/tinyusb/core/tusb_types.h index 45c6fbeac..1d69b9326 100644 --- a/tinyusb/core/tusb_types.h +++ b/tinyusb/core/tusb_types.h @@ -146,12 +146,13 @@ typedef enum { }tusb_std_class_code_t; enum { - TUSB_DESC_CONFIG_ATT_BUS_POWER = BIT_(7), - TUSB_DESC_CONFIG_ATT_SELF_POWER = BIT_(6), - TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP = BIT_(5) + TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP = BIT_(5), + TUSB_DESC_CONFIG_ATT_SELF_POWER = BIT_(6), + TUSB_DESC_CONFIG_ATT_BUS_POWER = BIT_(7) }; #define TUSB_DESC_CONFIG_POWER_MA(x) ((x)/2) + #ifdef __cplusplus } #endif |
