1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 11:29:58 +03:00

Removed non-library header from 'lib/'.

This commit is contained in:
mikeller 2019-04-28 14:57:03 +12:00
parent 5a3340311a
commit 2d958f8d8a
3 changed files with 5 additions and 29 deletions

View file

@ -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 <http://www.gnu.org/licenses/>.
*
* 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

View file

@ -18,7 +18,7 @@
* *
*/ */
#include "usbd_cdc_hid.h" //#include "usbd_cdc_hid.h"
#include "usbd_desc.h" #include "usbd_desc.h"
#include "usbd_ctlreq.h" #include "usbd_ctlreq.h"
#include "usbd_def.h" #include "usbd_def.h"

View file

@ -44,7 +44,9 @@
#include "vcp_hal/usbd_cdc_interface.h" #include "vcp_hal/usbd_cdc_interface.h"
#include "usb_io.h" #include "usb_io.h"
#ifdef USE_USB_CDC_HID #ifdef USE_USB_CDC_HID
#include "usbd_cdc_hid.h" #include "usbd_ioreq.h"
extern USBD_ClassTypeDef USBD_HID_CDC;
#endif #endif
USBD_HandleTypeDef USBD_Device; USBD_HandleTypeDef USBD_Device;
#else #else
@ -244,7 +246,7 @@ serialPort_t *usbVcpOpen(void)
switch (usbDevConfig()->type) { switch (usbDevConfig()->type) {
#ifdef USE_USB_CDC_HID #ifdef USE_USB_CDC_HID
case COMPOSITE: case COMPOSITE:
USBD_RegisterClass(&USBD_Device, USBD_HID_CDC_CLASS); USBD_RegisterClass(&USBD_Device, &USBD_HID_CDC);
break; break;
#endif #endif
default: default: