Add branch for the conversion of demos to use standard C header files for configurati...
[pub/USBasp.git] / Projects / MediaController / MediaController.c
index 0140527..24f0258 100644 (file)
@@ -48,11 +48,12 @@ USB_ClassInfo_HID_Device_t MediaControl_HID_Interface =
                .Config =
                        {
                                .InterfaceNumber              = 0,
                .Config =
                        {
                                .InterfaceNumber              = 0,
-
-                               .ReportINEndpointNumber       = MEDIACONTROL_HID_EPNUM,
-                               .ReportINEndpointSize         = MEDIACONTROL_HID_EPSIZE,
-                               .ReportINEndpointDoubleBank   = false,
-
+                               .ReportINEndpoint             =
+                                       {
+                                               .Address              = MEDIACONTROL_HID_EPADDR,
+                                               .Size                 = MEDIACONTROL_HID_EPSIZE,
+                                               .Banks                = 1,
+                                       },
                                .PrevReportINBuffer           = PrevMediaControlHIDReportBuffer,
                                .PrevReportINBufferSize       = sizeof(PrevMediaControlHIDReportBuffer),
                        },
                                .PrevReportINBuffer           = PrevMediaControlHIDReportBuffer,
                                .PrevReportINBufferSize       = sizeof(PrevMediaControlHIDReportBuffer),
                        },