add usbh_pipe_control_close (in conjunction with usbh pipe control open)

close control pipe when unplugged
This commit is contained in:
hathach
2013-03-13 11:20:02 +07:00
parent 97c9001d40
commit 97c436a16e
4 changed files with 30 additions and 9 deletions

View File

@@ -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