self powered and remote wakeup support are from configuration descriptor attribute

This commit is contained in:
hathach
2019-03-30 17:38:00 +07:00
parent ee6ed084f4
commit f3a954e7de
4 changed files with 22 additions and 30 deletions

View File

@@ -166,8 +166,7 @@ typedef enum
enum {
TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP = TU_BIT(5),
TUSB_DESC_CONFIG_ATT_SELF_POWER = TU_BIT(6),
TUSB_DESC_CONFIG_ATT_BUS_POWER = TU_BIT(7)
TUSB_DESC_CONFIG_ATT_SELF_POWERED = TU_BIT(6),
};
#define TUSB_DESC_CONFIG_POWER_MA(x) ((x)/2)