Add branch for the conversion of demos to use standard C header files for configurati...
[pub/USBasp.git] / Demos / Device / ClassDriver / Keyboard / Keyboard.c
index 15a7f17..24bf8d5 100644 (file)
@@ -48,11 +48,12 @@ USB_ClassInfo_HID_Device_t Keyboard_HID_Interface =
                .Config =
                        {
                                .InterfaceNumber              = 0,
-
-                               .ReportINEndpointNumber       = KEYBOARD_EPNUM,
-                               .ReportINEndpointSize         = KEYBOARD_EPSIZE,
-                               .ReportINEndpointDoubleBank   = false,
-
+                               .ReportINEndpoint             =
+                                       {
+                                               .Address              = KEYBOARD_EPADDR,
+                                               .Size                 = KEYBOARD_EPSIZE,
+                                               .Banks                = 1,
+                                       },
                                .PrevReportINBuffer           = PrevKeyboardHIDReportBuffer,
                                .PrevReportINBufferSize       = sizeof(PrevKeyboardHIDReportBuffer),
                        },