@ -40,41 +40,41 @@
/** Buffer to hold the previously generated Keyboard HID report, for comparison purposes inside the HID class driver. */
uint8_t PrevKeyboardHIDReportBuffer [ sizeof ( USB_KeyboardReport_Data_t ) ] ;
/** LUFA Mass Storage Class driver interface configuration and state information. This structure is
* passed to all Mass Storage Class driver functions , so that multiple instances of the same class
/** LUFA HID Class driver interface configuration and state information. This structure is
* passed to all HID Class driver functions , so that multiple instances of the same class
* within a device can be differentiated from one another .
*/
USB_ClassInfo_ MS_Device_t Disk_MS _Interface =
USB_ClassInfo_ HID_Device_t Keyboard_HID _Interface =
{
. Config =
{
. InterfaceNumber = 0 ,
. DataINEndpointNumber = MASS_STORAGE_IN_EPNUM ,
. DataINEndpointSize = MASS_STORAGE_IO_EPSIZE ,
. InterfaceNumber = 1 ,
. DataOUTEndpointNumber = MASS_STORAGE_OUT _EPNUM,
. DataOUTEndpointSize = MASS_STORAGE_IO _EPSIZE,
. ReportINEndpointNumber = KEYBOARD_EPNUM ,
. ReportINEndpointSize = KEYBOARD_EPSIZE ,
. TotalLUNs = TOTAL_LUNS ,
. PrevReportINBuffer = PrevKeyboardHIDReportBuffer ,
. PrevReportINBufferSize = sizeof ( PrevKeyboardHIDReportBuffer ) ,
} ,
} ;
/** LUFA HID Class driver interface configuration and state information. This structure is
* passed to all HID Class driver functions , so that multiple instances of the same class
/** LUFA Mass Storage Class driver interface configuration and state information. This structure is
* passed to all Mass Storage Class driver functions , so that multiple instances of the same class
* within a device can be differentiated from one another .
*/
USB_ClassInfo_ HID_Device_t Keyboard_HID _Interface =
USB_ClassInfo_ MS_Device_t Disk_MS _Interface =
{
. Config =
{
. InterfaceNumber = 1 ,
. InterfaceNumber = 0 ,
. ReportINEndpointNumber = KEYBOARD _EPNUM,
. ReportINEndpointSize = KEYBOARD _EPSIZE,
. DataINEndpointNumber = MASS_STORAGE_IN _EPNUM,
. DataINEndpointSize = MASS_STORAGE_IO _EPSIZE,
. PrevReportINBuffer = PrevKeyboardHIDReportBuffer ,
. PrevReportINBufferSize = sizeof ( PrevKeyboardHIDReportBuffer ) ,
. DataOUTEndpointNumber = MASS_STORAGE_OUT_EPNUM ,
. DataOUTEndpointSize = MASS_STORAGE_IO_EPSIZE ,
. TotalLUNs = TOTAL_LUNS ,
} ,
} ;