\r
.ReportINEndpointNumber = MOUSE_IN_EPNUM,\r
.ReportINEndpointSize = HID_EPSIZE,\r
- },\r
- \r
- .State =\r
- {\r
- // Leave all state values to their defaults\r
- } \r
+ }, \r
};\r
\r
/** Main program entry point. This routine contains the overall program flow, including initial\r
/** 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
-\r
- if (Mouse_HID_Interface.State.IdleMSRemaining)\r
- Mouse_HID_Interface.State.IdleMSRemaining--;\r
+ HID_Device_MillisecondElapsed(&Keyboard_HID_Interface);\r
+ HID_Device_MillisecondElapsed(&Mouse_HID_Interface);\r
}\r
\r
/** HID class driver callback function for the creation of HID reports to the host.\r