Add branch for the conversion of demos to use standard C header files for configurati...
[pub/USBasp.git] / Demos / DualRole / ClassDriver / MouseHostDevice / DeviceFunctions.c
index 16fc3fb..39a682a 100644 (file)
@@ -48,11 +48,12 @@ USB_ClassInfo_HID_Device_t Mouse_HID_Device_Interface =
                .Config =
                        {
                                .InterfaceNumber            = 0,
-
-                               .ReportINEndpointNumber     = MOUSE_EPNUM,
-                               .ReportINEndpointSize       = MOUSE_EPSIZE,
-                               .ReportINEndpointDoubleBank = false,
-
+                               .ReportINEndpoint           =
+                                       {
+                                               .Address            = MOUSE_EPADDR,
+                                               .Size               = MOUSE_EPSIZE,
+                                               .Banks              = 1,
+                                       },
                                .PrevReportINBuffer         = PrevMouseHIDReportBuffer,
                                .PrevReportINBufferSize     = sizeof(PrevMouseHIDReportBuffer),
                        },