summaryrefslogtreecommitdiffstatshomepage
path: root/stm/lib/usbd_req.c
diff options
context:
space:
mode:
Diffstat (limited to 'stm/lib/usbd_req.c')
-rw-r--r--stm/lib/usbd_req.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stm/lib/usbd_req.c b/stm/lib/usbd_req.c
index f954bd9af2..02217cdccc 100644
--- a/stm/lib/usbd_req.c
+++ b/stm/lib/usbd_req.c
@@ -127,7 +127,7 @@ static void USBD_SetFeature(USB_OTG_CORE_HANDLE *pdev,
static void USBD_ClrFeature(USB_OTG_CORE_HANDLE *pdev,
USB_SETUP_REQ *req);
-static uint8_t USBD_GetLen(uint8_t *buf);
+static uint8_t USBD_GetLen(const char *buf);
/**
* @}
*/
@@ -815,7 +815,7 @@ void USBD_CtlError( USB_OTG_CORE_HANDLE *pdev,
* @param len : descriptor length
* @retval None
*/
-void USBD_GetString(uint8_t *desc, uint8_t *unicode, uint16_t *len)
+void USBD_GetString(const char *desc, uint8_t *unicode, uint16_t *len)
{
uint8_t idx = 0;
@@ -839,7 +839,7 @@ void USBD_GetString(uint8_t *desc, uint8_t *unicode, uint16_t *len)
* @param buf : pointer to the ascii string buffer
* @retval string length
*/
-static uint8_t USBD_GetLen(uint8_t *buf)
+static uint8_t USBD_GetLen(const char *buf)
{
uint8_t len = 0;