mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 03:20:00 +03:00
Removed non-library header from 'lib/'. (#8115)
Removed non-library header from 'lib/'.
This commit is contained in:
commit
35270099c0
3 changed files with 5 additions and 29 deletions
|
@ -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
|
|
@ -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"
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue