diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-12-13 14:09:25 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-12-13 14:09:25 +0000 |
commit | 3705330dd32f54cf15842511b7657d2f321c11ad (patch) | |
tree | 5efa5e70e4a7d338befde10772f6a73ba80c69d3 /Demos/Host/LowLevel/PrinterHost | |
parent | 307ba254d5ef8bcdd9b9aa1bdb277041e79d6563 (diff) | |
download | lufa-3705330dd32f54cf15842511b7657d2f321c11ad.tar.gz lufa-3705330dd32f54cf15842511b7657d2f321c11ad.tar.bz2 lufa-3705330dd32f54cf15842511b7657d2f321c11ad.zip |
Use -pedantic compile time option to find and correct several minor code errors.
Diffstat (limited to 'Demos/Host/LowLevel/PrinterHost')
-rw-r--r-- | Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c | 20 | ||||
-rw-r--r-- | Demos/Host/LowLevel/PrinterHost/PrinterHost.c | 10 |
2 files changed, 15 insertions, 15 deletions
diff --git a/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c b/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c index a9f41ba64..be0d57b10 100644 --- a/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c +++ b/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c @@ -81,11 +81,11 @@ uint8_t Printer_GetDeviceID(char* DeviceIDString, uint16_t BufferSize) USB_ControlRequest = (USB_Request_Header_t)
{
- bmRequestType: (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE),
- bRequest: REQ_GetDeviceID,
- wValue: 0,
- wIndex: 0,
- wLength: sizeof(DeviceIDStringLength),
+ .bmRequestType = (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE),
+ .bRequest = REQ_GetDeviceID,
+ .wValue = 0,
+ .wIndex = 0,
+ .wLength = sizeof(DeviceIDStringLength),
};
Pipe_SelectPipe(PIPE_CONTROLPIPE);
@@ -149,11 +149,11 @@ uint8_t Printer_SoftReset(void) {
USB_ControlRequest = (USB_Request_Header_t)
{
- bmRequestType: (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE),
- bRequest: REQ_SoftReset,
- wValue: 0,
- wIndex: 0,
- wLength: 0,
+ .bmRequestType = (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE),
+ .bRequest = REQ_SoftReset,
+ .wValue = 0,
+ .wIndex = 0,
+ .wLength = 0,
};
Pipe_SelectPipe(PIPE_CONTROLPIPE);
diff --git a/Demos/Host/LowLevel/PrinterHost/PrinterHost.c b/Demos/Host/LowLevel/PrinterHost/PrinterHost.c index 861325a4b..7c1876fe0 100644 --- a/Demos/Host/LowLevel/PrinterHost/PrinterHost.c +++ b/Demos/Host/LowLevel/PrinterHost/PrinterHost.c @@ -174,11 +174,11 @@ void USB_Printer_Host(void) {
USB_ControlRequest = (USB_Request_Header_t)
{
- bmRequestType: (REQDIR_HOSTTODEVICE | REQTYPE_STANDARD | REQREC_INTERFACE),
- bRequest: REQ_SetInterface,
- wValue: PrinterAltSetting,
- wIndex: PrinterInterfaceNumber,
- wLength: 0,
+ .bmRequestType = (REQDIR_HOSTTODEVICE | REQTYPE_STANDARD | REQREC_INTERFACE),
+ .bRequest = REQ_SetInterface,
+ .wValue = PrinterAltSetting,
+ .wIndex = PrinterInterfaceNumber,
+ .wLength = 0,
};
if ((ErrorCode = USB_Host_SendControlRequest(NULL)) != HOST_SENDCONTROL_Successful)
|