Create release.yml
[betaflight.git] / src / main / vcp / usb_desc.h
blob9a21291c0c4263b5b5193649195fce24d25ae90d
1 /**
2 ******************************************************************************
3 * @file usb_desc.h
4 * @author MCD Application Team
5 * @version V4.0.0
6 * @date 21-January-2013
7 * @brief Descriptor Header for Virtual COM Port Device
8 ******************************************************************************
9 * @attention
11 * <h2><center>&copy; COPYRIGHT 2013 STMicroelectronics</center></h2>
13 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 * You may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at:
17 * http://www.st.com/software_license_agreement_liberty_v2
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
25 ******************************************************************************
28 /* Define to prevent recursive inclusion -------------------------------------*/
29 #ifndef __USB_DESC_H
30 #define __USB_DESC_H
32 /* Includes ------------------------------------------------------------------*/
33 /* Exported types ------------------------------------------------------------*/
34 /* Exported constants --------------------------------------------------------*/
35 /* Exported macro ------------------------------------------------------------*/
36 /* Exported define -----------------------------------------------------------*/
37 #define USB_DEVICE_DESCRIPTOR_TYPE 0x01
38 #define USB_CONFIGURATION_DESCRIPTOR_TYPE 0x02
39 #define USB_STRING_DESCRIPTOR_TYPE 0x03
40 #define USB_INTERFACE_DESCRIPTOR_TYPE 0x04
41 #define USB_ENDPOINT_DESCRIPTOR_TYPE 0x05
43 #define VIRTUAL_COM_PORT_DATA_SIZE 64
44 #define VIRTUAL_COM_PORT_INT_SIZE 8
46 #define VIRTUAL_COM_PORT_SIZ_DEVICE_DESC 18
47 #define VIRTUAL_COM_PORT_SIZ_CONFIG_DESC 67
48 #define VIRTUAL_COM_PORT_SIZ_STRING_LANGID 4
49 #define VIRTUAL_COM_PORT_SIZ_STRING_VENDOR 38
50 #define VIRTUAL_COM_PORT_SIZ_STRING_PRODUCT 50
51 #define VIRTUAL_COM_PORT_SIZ_STRING_SERIAL 26
53 #define STANDARD_ENDPOINT_DESC_SIZE 0x09
55 /* Exported functions ------------------------------------------------------- */
56 extern const uint8_t Virtual_Com_Port_DeviceDescriptor[VIRTUAL_COM_PORT_SIZ_DEVICE_DESC];
57 extern const uint8_t Virtual_Com_Port_ConfigDescriptor[VIRTUAL_COM_PORT_SIZ_CONFIG_DESC];
59 extern const uint8_t Virtual_Com_Port_StringLangID[VIRTUAL_COM_PORT_SIZ_STRING_LANGID];
60 extern const uint8_t Virtual_Com_Port_StringVendor[VIRTUAL_COM_PORT_SIZ_STRING_VENDOR];
61 extern const uint8_t Virtual_Com_Port_StringProduct[VIRTUAL_COM_PORT_SIZ_STRING_PRODUCT];
62 extern uint8_t Virtual_Com_Port_StringSerial[VIRTUAL_COM_PORT_SIZ_STRING_SERIAL];
64 #endif /* __USB_DESC_H */
65 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/