From fee89d520fb02b6fb673050c9d2043e14641edf6 Mon Sep 17 00:00:00 2001 From: Damien Date: Sun, 13 Oct 2013 19:02:15 +0100 Subject: Implement crude but functional CDC + MSC USB device. --- stm/lib/usbd_req.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'stm/lib/usbd_req.c') diff --git a/stm/lib/usbd_req.c b/stm/lib/usbd_req.c index f954bd9af..02217cdcc 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; -- cgit v1.2.3