diff options
| author | Damien George | 2014-03-15 14:46:35 +0000 |
|---|---|---|
| committer | Damien George | 2014-03-15 14:46:35 +0000 |
| commit | 6c2455f4810f8dd048a3ff13a233a5f13b556ea4 (patch) | |
| tree | c4e9204829dacc45f8648f26b80c428fae720eef /stmhal/usb.c | |
| parent | fdbc22e4d27b9d1c686647c9c67a32206f7bc83a (diff) | |
stmhal: Put an array in ROM.
Diffstat (limited to 'stmhal/usb.c')
| -rw-r--r-- | stmhal/usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/usb.c b/stmhal/usb.c index 21b88f9a1..5cf7b5f32 100644 --- a/stmhal/usb.c +++ b/stmhal/usb.c @@ -36,7 +36,7 @@ void pyb_usb_dev_init(int usb_dev_type) { // so the memory is invalid after a soft reset (which resets the GC). USBD_Init(&hUSBDDevice, &VCP_Desc, 0); USBD_RegisterClass(&hUSBDDevice, &USBD_CDC); - USBD_CDC_RegisterInterface(&hUSBDDevice, &USBD_CDC_fops); + USBD_CDC_RegisterInterface(&hUSBDDevice, (USBD_CDC_ItfTypeDef*)&USBD_CDC_fops); USBD_Start(&hUSBDDevice); //USBD_Init(&USB_OTG_Core, USB_OTG_FS_CORE_ID, &USR_desc, &USBD_PYB_cb, &USR_cb); break; |
