aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/LowLevel/PrinterHost
diff options
context:
space:
mode:
Diffstat (limited to 'Demos/Host/LowLevel/PrinterHost')
-rw-r--r--Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c6
-rw-r--r--Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c b/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c
index c75b7f910..a9f41ba64 100644
--- a/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c
+++ b/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c
@@ -82,7 +82,7 @@ uint8_t Printer_GetDeviceID(char* DeviceIDString, uint16_t BufferSize)
USB_ControlRequest = (USB_Request_Header_t)
{
bmRequestType: (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE),
- bRequest: GET_DEVICE_ID,
+ bRequest: REQ_GetDeviceID,
wValue: 0,
wIndex: 0,
wLength: sizeof(DeviceIDStringLength),
@@ -129,7 +129,7 @@ uint8_t Printer_GetPortStatus(uint8_t* PortStatus)
USB_ControlRequest = (USB_Request_Header_t)
{
bmRequestType: (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE),
- bRequest: GET_PORT_STATUS,
+ bRequest: REQ_GetPortStatus,
wValue: 0,
wIndex: 0,
wLength: sizeof(uint8_t),
@@ -150,7 +150,7 @@ uint8_t Printer_SoftReset(void)
USB_ControlRequest = (USB_Request_Header_t)
{
bmRequestType: (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE),
- bRequest: SOFT_RESET,
+ bRequest: REQ_SoftReset,
wValue: 0,
wIndex: 0,
wLength: 0,
diff --git a/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.h b/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.h
index cb8f04618..c8c1b137b 100644
--- a/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.h
+++ b/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.h
@@ -44,13 +44,13 @@
/* Macros: */
/** Printer class-specific request to retrieve the printer's ID string */
- #define GET_DEVICE_ID 0
+ #define REQ_GetDeviceID 0
/** Printer class-specific request to retrieve the printer's virtual port status flags */
- #define GET_PORT_STATUS 1
+ #define REQ_GetPortStatus 1
/** Printer class-specific request to soft-reset the device */
- #define SOFT_RESET 2
+ #define REQ_SoftReset 2
/** Pipe number of the Printer data IN pipe */
#define PRINTER_DATA_IN_PIPE 1