add provision for multiple configurations

This commit is contained in:
Peter Lawrence
2020-03-30 13:34:56 -05:00
parent 370dd18394
commit 87f313da48
14 changed files with 31 additions and 31 deletions

View File

@@ -98,8 +98,8 @@ enum
uint8_t const desc_configuration[] =
{
// interface count, string index, total length, attribute, power in mA
TUD_CONFIG_DESCRIPTOR(ITF_NUM_TOTAL, 0, CONFIG_TOTAL_LEN, TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP, 100),
// interface count, string index, total length, attribute, power in mA, config number
TUD_CONFIG_DESCRIPTOR(ITF_NUM_TOTAL, 0, CONFIG_TOTAL_LEN, TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP, 100, 1),
// Interface number, string index, EP Out & EP In address, EP size
TUD_MSC_DESCRIPTOR(ITF_NUM_MSC, 0, EPNUM_MSC_OUT, EPNUM_MSC_IN, (CFG_TUSB_RHPORT0_MODE & OPT_MODE_HIGH_SPEED) ? 512 : 64),