revise argument order for TUD_CONFIG_DESCRIPTOR macro

This commit is contained in:
Peter Lawrence
2020-03-31 10:53:47 -05:00
parent 87f313da48
commit 794212d44e
14 changed files with 30 additions and 30 deletions

View File

@@ -101,8 +101,8 @@ enum
uint8_t const desc_configuration[] =
{
// 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),
// Config number, interface count, string index, total length, attribute, power in mA
TUD_CONFIG_DESCRIPTOR(1, ITF_NUM_TOTAL, 0, CONFIG_TOTAL_LEN, TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP, 100),
// Interface number, string index, protocol, report descriptor len, EP In & Out address, size & polling interval
TUD_HID_DESCRIPTOR(ITF_NUM_HID, 0, HID_PROTOCOL_NONE, sizeof(desc_hid_report), EPNUM_HID, CFG_TUD_HID_BUFSIZE, 10)