aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device
diff options
context:
space:
mode:
Diffstat (limited to 'Demos/Device')
-rw-r--r--Demos/Device/ClassDriver/MassStorage/MassStorage.c2
-rw-r--r--Demos/Device/ClassDriver/MassStorage/MassStorage.h2
-rw-r--r--Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.c2
-rw-r--r--Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.h2
-rw-r--r--Demos/Device/Incomplete/Sideshow/Lib/SideshowCommands.c28
-rw-r--r--Demos/Device/Incomplete/Sideshow/Lib/SideshowCommands.h28
-rw-r--r--Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.c12
-rw-r--r--Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.h2
-rw-r--r--Demos/Device/Incomplete/Sideshow/Lib/SideshowContent.c2
-rw-r--r--Demos/Device/Incomplete/Sideshow/Lib/SideshowContent.h2
10 files changed, 41 insertions, 41 deletions
diff --git a/Demos/Device/ClassDriver/MassStorage/MassStorage.c b/Demos/Device/ClassDriver/MassStorage/MassStorage.c
index 36cc02035..ce8e04bc9 100644
--- a/Demos/Device/ClassDriver/MassStorage/MassStorage.c
+++ b/Demos/Device/ClassDriver/MassStorage/MassStorage.c
@@ -125,7 +125,7 @@ void EVENT_USB_Device_UnhandledControlRequest(void)
*
* \param[in] MSInterfaceInfo Pointer to the Mass Storage class interface configuration structure being referenced
*/
-bool CALLBACK_MS_Device_SCSICommandReceived(USB_ClassInfo_MS_Device_t* MSInterfaceInfo)
+bool CALLBACK_MS_Device_SCSICommandReceived(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo)
{
bool CommandSuccess;
diff --git a/Demos/Device/ClassDriver/MassStorage/MassStorage.h b/Demos/Device/ClassDriver/MassStorage/MassStorage.h
index adbae45c4..2c7fa7d7f 100644
--- a/Demos/Device/ClassDriver/MassStorage/MassStorage.h
+++ b/Demos/Device/ClassDriver/MassStorage/MassStorage.h
@@ -81,6 +81,6 @@
void EVENT_USB_Device_ConfigurationChanged(void);
void EVENT_USB_Device_UnhandledControlRequest(void);
- bool CALLBACK_MS_Device_SCSICommandReceived(USB_ClassInfo_MS_Device_t* MSInterfaceInfo);
+ bool CALLBACK_MS_Device_SCSICommandReceived(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo);
#endif
diff --git a/Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.c b/Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.c
index 4816b7e15..828699af5 100644
--- a/Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.c
+++ b/Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.c
@@ -157,7 +157,7 @@ void EVENT_USB_Device_UnhandledControlRequest(void)
*
* \param[in] MSInterfaceInfo Pointer to the Mass Storage class interface configuration structure being referenced
*/
-bool CALLBACK_MS_Device_SCSICommandReceived(USB_ClassInfo_MS_Device_t* MSInterfaceInfo)
+bool CALLBACK_MS_Device_SCSICommandReceived(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo)
{
bool CommandSuccess;
diff --git a/Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.h b/Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.h
index 41b899a31..deeb6e048 100644
--- a/Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.h
+++ b/Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.h
@@ -89,7 +89,7 @@
void EVENT_USB_Device_UnhandledControlRequest(void);
void EVENT_USB_Device_StartOfFrame(void);
- bool CALLBACK_MS_Device_SCSICommandReceived(USB_ClassInfo_MS_Device_t* MSInterfaceInfo);
+ bool CALLBACK_MS_Device_SCSICommandReceived(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo);
bool CALLBACK_HID_Device_CreateHIDReport(USB_ClassInfo_HID_Device_t* const HIDInterfaceInfo, uint8_t* const ReportID,
const uint8_t ReportType, void* ReportData, uint16_t* ReportSize);
diff --git a/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommands.c b/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommands.c
index 0353af4fb..c0f7096b2 100644
--- a/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommands.c
+++ b/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommands.c
@@ -118,7 +118,7 @@ void Sideshow_ProcessCommandPacket(void)
}
}
-static void SideShow_Ping(SideShow_PacketHeader_t* PacketHeader)
+static void SideShow_Ping(SideShow_PacketHeader_t* const PacketHeader)
{
Endpoint_ClearOUT();
@@ -127,7 +127,7 @@ static void SideShow_Ping(SideShow_PacketHeader_t* PacketHeader)
Endpoint_ClearIN();
}
-static void SideShow_Sync(SideShow_PacketHeader_t* PacketHeader)
+static void SideShow_Sync(SideShow_PacketHeader_t* const PacketHeader)
{
GUID_t ProtocolGUID;
@@ -143,7 +143,7 @@ static void SideShow_Sync(SideShow_PacketHeader_t* PacketHeader)
Endpoint_ClearIN();
}
-static void SideShow_GetCurrentUser(SideShow_PacketHeader_t* PacketHeader)
+static void SideShow_GetCurrentUser(SideShow_PacketHeader_t* const PacketHeader)
{
Endpoint_ClearOUT();
@@ -155,7 +155,7 @@ static void SideShow_GetCurrentUser(SideShow_PacketHeader_t* PacketHeader)
Endpoint_ClearIN();
}
-static void SideShow_SetCurrentUser(SideShow_PacketHeader_t* PacketHeader)
+static void SideShow_SetCurrentUser(SideShow_PacketHeader_t* const PacketHeader)
{
SideShow_Read_Unicode_String(&UserSID, sizeof(UserSID.UnicodeString));
Endpoint_ClearOUT();
@@ -167,7 +167,7 @@ static void SideShow_SetCurrentUser(SideShow_PacketHeader_t* PacketHeader)
Endpoint_ClearIN();
}
-static void SideShow_GetCapabilities(SideShow_PacketHeader_t* PacketHeader)
+static void SideShow_GetCapabilities(SideShow_PacketHeader_t* const PacketHeader)
{
SideShow_PropertyKey_t Property;
SideShow_PropertyData_t PropertyData;
@@ -280,7 +280,7 @@ static void SideShow_GetCapabilities(SideShow_PacketHeader_t* PacketHeader)
return;
}
-static void SideShow_GetString(SideShow_PacketHeader_t* PacketHeader, void* UnicodeStruct)
+static void SideShow_GetString(SideShow_PacketHeader_t* const PacketHeader, void* const UnicodeStruct)
{
Endpoint_ClearOUT();
@@ -293,7 +293,7 @@ static void SideShow_GetString(SideShow_PacketHeader_t* PacketHeader, void* Unic
Endpoint_ClearIN();
}
-static void SideShow_GetApplicationOrder(SideShow_PacketHeader_t* PacketHeader)
+static void SideShow_GetApplicationOrder(SideShow_PacketHeader_t* const PacketHeader)
{
uint8_t TotalApplications = 0;
@@ -321,7 +321,7 @@ static void SideShow_GetApplicationOrder(SideShow_PacketHeader_t* PacketHeader)
Endpoint_ClearIN();
}
-static void SideShow_GetSupportedEndpoints(SideShow_PacketHeader_t* PacketHeader)
+static void SideShow_GetSupportedEndpoints(SideShow_PacketHeader_t* const PacketHeader)
{
GUID_t SupportedEndpointGUID = (GUID_t){Chunks: SIMPLE_CONTENT_FORMAT_GUID};
@@ -336,7 +336,7 @@ static void SideShow_GetSupportedEndpoints(SideShow_PacketHeader_t* PacketHeader
Endpoint_ClearIN();
}
-static void SideShow_AddApplication(SideShow_PacketHeader_t* PacketHeader)
+static void SideShow_AddApplication(SideShow_PacketHeader_t* const PacketHeader)
{
SideShow_Application_t* CurrApp;
GUID_t ApplicationID;
@@ -381,7 +381,7 @@ static void SideShow_AddApplication(SideShow_PacketHeader_t* PacketHeader)
Endpoint_ClearIN();
}
-static void SideShow_DeleteApplication(SideShow_PacketHeader_t* PacketHeader)
+static void SideShow_DeleteApplication(SideShow_PacketHeader_t* const PacketHeader)
{
GUID_t ApplicationGUID;
@@ -402,7 +402,7 @@ static void SideShow_DeleteApplication(SideShow_PacketHeader_t* PacketHeader)
Endpoint_ClearIN();
}
-static void SideShow_DeleteAllApplications(SideShow_PacketHeader_t* PacketHeader)
+static void SideShow_DeleteAllApplications(SideShow_PacketHeader_t* const PacketHeader)
{
Endpoint_ClearOUT();
@@ -414,7 +414,7 @@ static void SideShow_DeleteAllApplications(SideShow_PacketHeader_t* PacketHeader
Endpoint_ClearIN();
}
-static void SideShow_AddContent(SideShow_PacketHeader_t* PacketHeader)
+static void SideShow_AddContent(SideShow_PacketHeader_t* const PacketHeader)
{
GUID_t ApplicationID;
GUID_t EndpointID;
@@ -444,7 +444,7 @@ static void SideShow_AddContent(SideShow_PacketHeader_t* PacketHeader)
Endpoint_ClearIN();
}
-static void SideShow_DeleteContent(SideShow_PacketHeader_t* PacketHeader)
+static void SideShow_DeleteContent(SideShow_PacketHeader_t* const PacketHeader)
{
GUID_t ApplicationID;
GUID_t EndpointID;
@@ -469,7 +469,7 @@ static void SideShow_DeleteContent(SideShow_PacketHeader_t* PacketHeader)
Endpoint_ClearIN();
}
-static void SideShow_DeleteAllContent(SideShow_PacketHeader_t* PacketHeader)
+static void SideShow_DeleteAllContent(SideShow_PacketHeader_t* const PacketHeader)
{
GUID_t ApplicationID;
GUID_t EndpointID;
diff --git a/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommands.h b/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommands.h
index e609175aa..0d8727d29 100644
--- a/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommands.h
+++ b/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommands.h
@@ -146,20 +146,20 @@
void Sideshow_ProcessCommandPacket(void);
#if defined(INCLUDE_FROM_SIDESHOWCOMMANDS_H)
- static void SideShow_Ping(SideShow_PacketHeader_t* PacketHeader);
- static void SideShow_Sync(SideShow_PacketHeader_t* PacketHeader);
- static void SideShow_GetCurrentUser(SideShow_PacketHeader_t* PacketHeader);
- static void SideShow_SetCurrentUser(SideShow_PacketHeader_t* PacketHeader);
- static void SideShow_GetCapabilities(SideShow_PacketHeader_t* PacketHeader);
- static void SideShow_GetString(SideShow_PacketHeader_t* PacketHeader, void* UnicodeStruct);
- static void SideShow_GetApplicationOrder(SideShow_PacketHeader_t* PacketHeader);
- static void SideShow_GetSupportedEndpoints(SideShow_PacketHeader_t* PacketHeader);
- static void SideShow_AddApplication(SideShow_PacketHeader_t* PacketHeader);
- static void SideShow_DeleteApplication(SideShow_PacketHeader_t* PacketHeader);
- static void SideShow_DeleteAllApplications(SideShow_PacketHeader_t* PacketHeader);
- static void SideShow_AddContent(SideShow_PacketHeader_t* PacketHeader);
- static void SideShow_DeleteContent(SideShow_PacketHeader_t* PacketHeader);
- static void SideShow_DeleteAllContent(SideShow_PacketHeader_t* PacketHeader);
+ static void SideShow_Ping(SideShow_PacketHeader_t* const PacketHeader);
+ static void SideShow_Sync(SideShow_PacketHeader_t* const PacketHeader);
+ static void SideShow_GetCurrentUser(SideShow_PacketHeader_t* const PacketHeader);
+ static void SideShow_SetCurrentUser(SideShow_PacketHeader_t* const PacketHeader);
+ static void SideShow_GetCapabilities(SideShow_PacketHeader_t* const PacketHeader);
+ static void SideShow_GetString(SideShow_PacketHeader_t* const PacketHeader, void* const UnicodeStruct);
+ static void SideShow_GetApplicationOrder(SideShow_PacketHeader_t* const PacketHeader);
+ static void SideShow_GetSupportedEndpoints(SideShow_PacketHeader_t* const PacketHeader);
+ static void SideShow_AddApplication(SideShow_PacketHeader_t* const PacketHeader);
+ static void SideShow_DeleteApplication(SideShow_PacketHeader_t* const PacketHeader);
+ static void SideShow_DeleteAllApplications(SideShow_PacketHeader_t* const PacketHeader);
+ static void SideShow_AddContent(SideShow_PacketHeader_t* const PacketHeader);
+ static void SideShow_DeleteContent(SideShow_PacketHeader_t* const PacketHeader);
+ static void SideShow_DeleteAllContent(SideShow_PacketHeader_t* const PacketHeader);
#endif
#endif
diff --git a/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.c b/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.c
index 92691158e..68a819509 100644
--- a/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.c
+++ b/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.c
@@ -30,14 +30,14 @@
#include "SideshowCommon.h"
-uint16_t SideShow_Read_Unicode_String(void* UnicodeString, uint16_t MaxBytes)
+uint16_t SideShow_Read_Unicode_String(void* const UnicodeString, const uint16_t MaxBytes)
{
- Unicode_String_t* UnicodeStruct = (Unicode_String_t*)UnicodeString;
- uint32_t UnicodeCharsToRead;
+ Unicode_String_t* const UnicodeStruct = (Unicode_String_t*)UnicodeString;
+ uint32_t UnicodeCharsToRead;
Endpoint_Read_Stream_LE(&UnicodeCharsToRead, sizeof(uint32_t));
- int UnicodeData[UnicodeCharsToRead];
+ int UnicodeData[UnicodeCharsToRead];
UnicodeStruct->LengthInBytes = (UnicodeCharsToRead << 1);
@@ -51,9 +51,9 @@ uint16_t SideShow_Read_Unicode_String(void* UnicodeString, uint16_t MaxBytes)
return ((UnicodeCharsToRead << 1) + sizeof(uint32_t));
}
-void SideShow_Write_Unicode_String(void* UnicodeString)
+void SideShow_Write_Unicode_String(void* const UnicodeString)
{
- Unicode_String_t* UnicodeStruct = (Unicode_String_t*)UnicodeString;
+ Unicode_String_t* const UnicodeStruct = (Unicode_String_t*)UnicodeString;
uint32_t StringSizeInCharacters = (UnicodeStruct->LengthInBytes >> 1);
diff --git a/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.h b/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.h
index e6be6be61..9bda6acaf 100644
--- a/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.h
+++ b/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.h
@@ -96,7 +96,7 @@
} SideShow_PacketHeader_t;
/* Function Prototypes: */
- uint16_t SideShow_Read_Unicode_String(void* UnicodeString, uint16_t MaxBytes);
+ uint16_t SideShow_Read_Unicode_String(void* UnicodeString, const uint16_t MaxBytes);
void SideShow_Write_Unicode_String(void* UnicodeString);
void SideShow_Discard_Byte_Stream(void);
diff --git a/Demos/Device/Incomplete/Sideshow/Lib/SideshowContent.c b/Demos/Device/Incomplete/Sideshow/Lib/SideshowContent.c
index fed5bd982..d77dc4a4e 100644
--- a/Demos/Device/Incomplete/Sideshow/Lib/SideshowContent.c
+++ b/Demos/Device/Incomplete/Sideshow/Lib/SideshowContent.c
@@ -31,7 +31,7 @@
#define INCLUDE_FROM_SIDESHOWCONTENT_C
#include "SideshowContent.h"
-bool SideShow_AddSimpleContent(SideShow_PacketHeader_t* PacketHeader, SideShow_Application_t* Application)
+bool SideShow_AddSimpleContent(SideShow_PacketHeader_t* const PacketHeader, SideShow_Application_t* const Application)
{
uint32_t ContentSize;
uint32_t ContentID;
diff --git a/Demos/Device/Incomplete/Sideshow/Lib/SideshowContent.h b/Demos/Device/Incomplete/Sideshow/Lib/SideshowContent.h
index b34567f68..47c15fb88 100644
--- a/Demos/Device/Incomplete/Sideshow/Lib/SideshowContent.h
+++ b/Demos/Device/Incomplete/Sideshow/Lib/SideshowContent.h
@@ -116,7 +116,7 @@
#define XML_END_TAG "</body>"
/* Function Prototypes: */
- bool SideShow_AddSimpleContent(SideShow_PacketHeader_t* PacketHeader, SideShow_Application_t* Application);
+ bool SideShow_AddSimpleContent(SideShow_PacketHeader_t* const PacketHeader, SideShow_Application_t* const Application);
#if defined(INCLUDE_FROM_SIDESHOWCONTENT_C)
static void SideShow_ProcessXMLContent(void* ContentData, uint32_t ContentSize);