Renamed USB_Device_SetHighSpeed() to USB_Device_SetFullSpeed() so that the correct...
[pub/USBasp.git] / Demos / Device / ClassDriver / Keyboard / Keyboard.c
index af56a22..fb19d02 100644 (file)
@@ -49,14 +49,7 @@ USB_ClassInfo_HID_Device_t Keyboard_HID_Interface =
 \r
                                .ReportINEndpointNumber  = KEYBOARD_EPNUM,\r
                                .ReportINEndpointSize    = KEYBOARD_EPSIZE,\r
-\r
-                               .ReportINBufferSize      = sizeof(USB_KeyboardReport_Data_t),\r
                        },\r
-               \r
-               .State =\r
-                       {\r
-                               .IdleCount               = 500,\r
-                       }\r
     };\r
 \r
 /** Main program entry point. This routine contains the overall program flow, including initial\r
@@ -128,8 +121,7 @@ void EVENT_USB_UnhandledControlPacket(void)
 /** ISR to keep track of each millisecond interrupt, for determining the HID class idle period remaining when set. */\r
 ISR(TIMER0_COMPA_vect, ISR_BLOCK)\r
 {\r
-       if (Keyboard_HID_Interface.State.IdleMSRemaining)\r
-         Keyboard_HID_Interface.State.IdleMSRemaining--;\r
+       HID_Device_MillisecondElapsed(&Keyboard_HID_Interface);\r
 }\r
 \r
 /** HID class driver callback function for the creation of HID reports to the host.\r