diff --git a/lib/main/STM32F7/Middlewares/ST/STM32_USB_Device_Library/Class/CDC_HID/Inc/usbd_cdc_hid.h b/lib/main/STM32F7/Middlewares/ST/STM32_USB_Device_Library/Class/CDC_HID/Inc/usbd_cdc_hid.h deleted file mode 100644 index 83590d90b8..0000000000 --- a/lib/main/STM32F7/Middlewares/ST/STM32_USB_Device_Library/Class/CDC_HID/Inc/usbd_cdc_hid.h +++ /dev/null @@ -1,26 +0,0 @@ -/* - * This file is part of Cleanflight. - * - * Cleanflight is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Cleanflight is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Cleanflight. If not, see . - * - * Author: Chris Hockuba (https://github.com/conkerkh) - * - */ - -#pragma once - -#include "usbd_ioreq.h" - -extern USBD_ClassTypeDef USBD_HID_CDC; -#define USBD_HID_CDC_CLASS &USBD_HID_CDC diff --git a/lib/main/STM32F7/Middlewares/ST/STM32_USB_Device_Library/Class/CDC_HID/Src/usbd_cdc_hid.c b/lib/main/STM32F7/Middlewares/ST/STM32_USB_Device_Library/Class/CDC_HID/Src/usbd_cdc_hid.c index f2c98ae54c..5baa7a7c6d 100644 --- a/lib/main/STM32F7/Middlewares/ST/STM32_USB_Device_Library/Class/CDC_HID/Src/usbd_cdc_hid.c +++ b/lib/main/STM32F7/Middlewares/ST/STM32_USB_Device_Library/Class/CDC_HID/Src/usbd_cdc_hid.c @@ -18,7 +18,7 @@ * */ -#include "usbd_cdc_hid.h" +//#include "usbd_cdc_hid.h" #include "usbd_desc.h" #include "usbd_ctlreq.h" #include "usbd_def.h" diff --git a/src/main/drivers/serial_usb_vcp.c b/src/main/drivers/serial_usb_vcp.c index 13f68e77ee..2633934cec 100644 --- a/src/main/drivers/serial_usb_vcp.c +++ b/src/main/drivers/serial_usb_vcp.c @@ -48,7 +48,9 @@ #endif #include "usb_io.h" #ifdef USE_USB_CDC_HID -#include "usbd_cdc_hid.h" +#include "usbd_ioreq.h" + +extern USBD_ClassTypeDef USBD_HID_CDC; #endif USBD_HandleTypeDef USBD_Device; #else @@ -249,7 +251,7 @@ serialPort_t *usbVcpOpen(void) switch (usbDevConfig()->type) { #ifdef USE_USB_CDC_HID case COMPOSITE: - USBD_RegisterClass(&USBD_Device, USBD_HID_CDC_CLASS); + USBD_RegisterClass(&USBD_Device, &USBD_HID_CDC); break; #endif default: