summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorPeter Lawrence <[email protected]>2020-03-31 10:53:47 -0500
committerPeter Lawrence <[email protected]>2020-03-31 10:53:47 -0500
commit794212d44e38a05d8b747e43942595d214ee5b0b (patch)
tree061b0eea262c20b200234701aaa36d50dd8e9864 /src/device
parent87f313da48aa1df4fb0566d9ad26036f06418422 (diff)
revise argument order for TUD_CONFIG_DESCRIPTOR macro
Diffstat (limited to 'src/device')
-rw-r--r--src/device/usbd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h
index 71829322b..beeec7e1c 100644
--- a/src/device/usbd.h
+++ b/src/device/usbd.h
@@ -156,8 +156,8 @@ TU_ATTR_WEAK bool tud_vendor_control_complete_cb(uint8_t rhport, tusb_control_re
//------------- Configuration -------------//
#define TUD_CONFIG_DESC_LEN (9)
-// Interface count, string index, total length, attribute, power in mA, config number
-#define TUD_CONFIG_DESCRIPTOR(_itfcount, _stridx, _total_len, _attribute, _power_ma, config_num) \
+// Config number, interface count, string index, total length, attribute, power in mA
+#define TUD_CONFIG_DESCRIPTOR(config_num, _itfcount, _stridx, _total_len, _attribute, _power_ma) \
9, TUSB_DESC_CONFIGURATION, U16_TO_U8S_LE(_total_len), _itfcount, config_num, _stridx, TU_BIT(7) | _attribute, (_power_ma)/2
//------------- CDC -------------//