diff options
author | Damien <damien.p.george@gmail.com> | 2013-10-13 19:02:15 +0100 |
---|---|---|
committer | Damien <damien.p.george@gmail.com> | 2013-10-13 19:02:15 +0100 |
commit | fee89d520fb02b6fb673050c9d2043e14641edf6 (patch) | |
tree | 65fc7a33667e8147c983ed9925ff9fb30d63199c /stm/lib/usbd_req.c | |
parent | ed65605edc5c1376947a34723b9c750400b5a028 (diff) | |
download | micropython-fee89d520fb02b6fb673050c9d2043e14641edf6.tar.gz micropython-fee89d520fb02b6fb673050c9d2043e14641edf6.zip |
Implement crude but functional CDC + MSC USB device.
Diffstat (limited to 'stm/lib/usbd_req.c')
-rw-r--r-- | stm/lib/usbd_req.c | 6 |
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;
|