Fix interfaces order.
@@ -2175,15 +2175,6 @@ const U8 USBD_ConfigDescriptor[] = {
MSC_EP
#endif
-#if (USBD_HID_ENABLE)
- HID_DESC
-#if (USBD_HID_EP_INTOUT != 0)
- HID_EP_INOUT
-#else
- HID_EP
-#endif
-#endif
-
#if (USBD_CDC_ACM_ENABLE)
#if (USBD_MULTI_IF)
CDC_ACM_DESC_IAD(USBD_CDC_ACM_CIF_NUM, 2)
@@ -2194,6 +2185,15 @@ const U8 USBD_ConfigDescriptor[] = {
CDC_ACM_EP_IF1
#endif
+#if (USBD_HID_ENABLE)
+ HID_DESC
+#if (USBD_HID_EP_INTOUT != 0)
+ HID_EP_INOUT
+#else
+ HID_EP
+#endif
+#endif
+
#if (USBD_WEBUSB_ENABLE)
WEBUSB_DESC
#endif
@@ -2239,6 +2239,16 @@ const U8 USBD_ConfigDescriptor_HS[] = {
MSC_EP_HS
#endif
+#if (USBD_CDC_ACM_ENABLE)
+#if (USBD_MULTI_IF)
+ CDC_ACM_DESC_IAD(USBD_CDC_ACM_CIF_NUM, 2)
+#endif
+ CDC_ACM_DESC_IF0
+ CDC_ACM_EP_IF0_HS
+ CDC_ACM_DESC_IF1
+ CDC_ACM_EP_IF1_HS
+#endif
+
#if (USBD_HID_ENABLE)
HID_DESC
#if (USBD_HID_EP_INTOUT != 0)
@@ -2252,16 +2262,6 @@ const U8 USBD_ConfigDescriptor_HS[] = {
WEBUSB_DESC
#endif
-#if (USBD_CDC_ACM_ENABLE)
-#if (USBD_MULTI_IF)
- CDC_ACM_DESC_IAD(USBD_CDC_ACM_CIF_NUM, 2)
-#endif
- CDC_ACM_DESC_IF0
- CDC_ACM_EP_IF0_HS
- CDC_ACM_DESC_IF1
- CDC_ACM_EP_IF1_HS
-#endif
-
/* Terminator */ \
0 /* bLength */ \
};
