diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-04-20 11:21:36 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-04-20 11:21:36 +0000 |
commit | 37b2130fb2767a39f3d95414c6aca75a67c26298 (patch) | |
tree | 0288d41e710e3142696765cb76288357439c296b /Demos/Host/GenericHIDHost | |
parent | 619b0b7b6b44e4422ea9aeb0cde41343bb5dda70 (diff) | |
download | lufa-37b2130fb2767a39f3d95414c6aca75a67c26298.tar.gz lufa-37b2130fb2767a39f3d95414c6aca75a67c26298.tar.bz2 lufa-37b2130fb2767a39f3d95414c6aca75a67c26298.zip |
Changed over all deprecated GCC structure tag initializers to the standardized C99 format (thanks to Mike Alexander).
Diffstat (limited to 'Demos/Host/GenericHIDHost')
-rw-r--r-- | Demos/Host/GenericHIDHost/GenericHIDHost.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Demos/Host/GenericHIDHost/GenericHIDHost.c b/Demos/Host/GenericHIDHost/GenericHIDHost.c index b047841f6..f0d196768 100644 --- a/Demos/Host/GenericHIDHost/GenericHIDHost.c +++ b/Demos/Host/GenericHIDHost/GenericHIDHost.c @@ -39,8 +39,8 @@ /* Scheduler Task List */
TASK_LIST
{
- { Task: USB_USBTask , TaskStatus: TASK_STOP },
- { Task: USB_HID_Host , TaskStatus: TASK_STOP },
+ { .Task = USB_USBTask , .TaskStatus = TASK_STOP },
+ { .Task = USB_HID_Host , .TaskStatus = TASK_STOP },
};
@@ -259,11 +259,11 @@ void WriteNextReport(uint8_t* ReportOUTData, uint8_t ReportIndex, uint8_t Report /* Class specific request to send a HID report to the device */
USB_HostRequest = (USB_Host_Request_Header_t)
{
- bmRequestType: (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE),
- bRequest: REQ_SetReport,
- wValue: ((ReportType << 8) | ReportIndex),
- wIndex: 0,
- wLength: ReportLength,
+ .bmRequestType = (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE),
+ .bRequest = REQ_SetReport,
+ .wValue = ((ReportType << 8) | ReportIndex),
+ .wIndex = 0,
+ .wLength = ReportLength,
};
/* Select the control pipe for the request transfer */
@@ -288,11 +288,11 @@ TASK(USB_HID_Host) /* Standard request to set the device configuration to configuration 1 */
USB_HostRequest = (USB_Host_Request_Header_t)
{
- bmRequestType: (REQDIR_HOSTTODEVICE | REQTYPE_STANDARD | REQREC_DEVICE),
- bRequest: REQ_SetConfiguration,
- wValue: 1,
- wIndex: 0,
- wLength: 0,
+ .bmRequestType = (REQDIR_HOSTTODEVICE | REQTYPE_STANDARD | REQREC_DEVICE),
+ .bRequest = REQ_SetConfiguration,
+ .wValue = 1,
+ .wIndex = 0,
+ .wLength = 0,
};
/* Select the control pipe for the request transfer */
|