APM:Libraries
usbcfg.h
Go to the documentation of this file.
1 /*
2  ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
3  Licensed under the Apache License, Version 2.0 (the "License");
4  you may not use this file except in compliance with the License.
5  You may obtain a copy of the License at
6  http://www.apache.org/licenses/LICENSE-2.0
7  Unless required by applicable law or agreed to in writing, software
8  distributed under the License is distributed on an "AS IS" BASIS,
9  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10  See the License for the specific language governing permissions and
11  limitations under the License.
12 */
13 /*
14  * This file is free software: you can redistribute it and/or modify it
15  * under the terms of the GNU General Public License as published by the
16  * Free Software Foundation, either version 3 of the License, or
17  * (at your option) any later version.
18  *
19  * This file is distributed in the hope that it will be useful, but
20  * WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22  * See the GNU General Public License for more details.
23  *
24  * You should have received a copy of the GNU General Public License along
25  * with this program. If not, see <http://www.gnu.org/licenses/>.
26  *
27  * Modified for use in AP_HAL by Andrew Tridgell and Siddharth Bharat Purohit
28  */
29 #pragma once
30 
31 #if defined(__cplusplus)
32 extern "C" {
33 #endif
34 
35 #if HAL_USE_SERIAL_USB
36 extern const USBConfig usbcfg;
37 extern SerialUSBConfig serusbcfg;
38 extern SerialUSBDriver SDU1;
39 #endif
40 
41 void setup_usb_strings(void);
42 
43 #if defined(__cplusplus)
44 }
45 #endif
46 
void setup_usb_strings(void)