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.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c b/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c
index 9308e122d..79cfc0dec 100644
--- a/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c
+++ b/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c
@@ -44,7 +44,7 @@
*
* \return A value from the Pipe_Stream_RW_ErrorCodes_t enum
*/
-uint8_t Printer_SendData(void* PrinterCommands, uint16_t CommandSize)
+uint8_t Printer_SendData(const void* const PrinterCommands, const uint16_t CommandSize)
{
uint8_t ErrorCode;
@@ -74,7 +74,7 @@ uint8_t Printer_SendData(void* PrinterCommands, uint16_t CommandSize)
*
* \return A value from the USB_Host_SendControlErrorCodes_t enum
*/
-uint8_t Printer_GetDeviceID(char* DeviceIDString, uint16_t BufferSize)
+uint8_t Printer_GetDeviceID(char* DeviceIDString, const uint16_t BufferSize)
{
uint8_t ErrorCode = HOST_SENDCONTROL_Successful;
uint16_t DeviceIDStringLength = 0;
@@ -124,7 +124,7 @@ uint8_t Printer_GetDeviceID(char* DeviceIDString, uint16_t BufferSize)
*
* \return A value from the USB_Host_SendControlErrorCodes_t enum
*/
-uint8_t Printer_GetPortStatus(uint8_t* PortStatus)
+uint8_t Printer_GetPortStatus(uint8_t* const PortStatus)
{
USB_ControlRequest = (USB_Request_Header_t)
{
diff --git a/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.h b/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.h
index c451ef8b8..b7c0a9e02 100644
--- a/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.h
+++ b/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.h
@@ -59,8 +59,8 @@
#define PRINTER_DATA_OUT_PIPE 2
/* Function Prototypes: */
- uint8_t Printer_SendData(void* PrinterCommands, uint16_t CommandSize);
- uint8_t Printer_GetDeviceID(char* DeviceIDString, uint16_t BufferSize);
+ uint8_t Printer_SendData(const void* const PrinterCommands, const uint16_t CommandSize);
+ uint8_t Printer_GetDeviceID(char* DeviceIDString, const uint16_t BufferSize);
uint8_t Printer_GetPortStatus(uint8_t* PortStatus);
uint8_t Printer_SoftReset(void);