1 #ifndef USBDESCRIPTOR_H_INCLUDED
2 #define USBDESCRIPTOR_H_INCLUDED
7 #define USBD1_DATA_REQUEST_EP 1
8 #define USBD1_DATA_AVAILABLE_EP 1
9 #define USBD1_INTERRUPT_REQUEST_EP 2
14 static const uint8_t vcom_device_descriptor_data[18] = {
15 USB_DESC_DEVICE (0x0110,
32 static const USBDescriptor vcom_device_descriptor = {
33 sizeof vcom_device_descriptor_data,
34 vcom_device_descriptor_data
38 static const uint8_t vcom_configuration_descriptor_data[67] = {
40 USB_DESC_CONFIGURATION(67,
47 USB_DESC_INTERFACE (0x00,
63 USB_DESC_BCD (0x0110),
92 USB_DESC_INTERFACE (0x01,
117 static const USBDescriptor vcom_configuration_descriptor = {
118 sizeof vcom_configuration_descriptor_data,
119 vcom_configuration_descriptor_data
125 static const uint8_t vcom_string0[] = {
127 USB_DESC_BYTE(USB_DESCRIPTOR_STRING),
128 USB_DESC_WORD(0x0409)
134 static const uint8_t vcom_string1[] = {
136 USB_DESC_BYTE(USB_DESCRIPTOR_STRING),
137 'S', 0,
'T', 0,
'M', 0,
'i', 0,
'c', 0,
'r', 0,
'o', 0,
'e', 0,
138 'l', 0,
'e', 0,
'c', 0,
't', 0,
'r', 0,
'o', 0,
'n', 0,
'i', 0,
145 static const uint8_t vcom_string2[] = {
147 USB_DESC_BYTE(USB_DESCRIPTOR_STRING),
148 'C', 0,
'h', 0,
'i', 0,
'b', 0,
'i', 0,
'O', 0,
'S', 0,
'/', 0,
149 'R', 0,
'T', 0,
' ', 0,
'V', 0,
'i', 0,
'r', 0,
't', 0,
'u', 0,
150 'a', 0,
'l', 0,
' ', 0,
'C', 0,
'O', 0,
'M', 0,
' ', 0,
'P', 0,
151 'o', 0,
'r', 0,
't', 0
157 static const uint8_t vcom_string3[] = {
159 USB_DESC_BYTE(USB_DESCRIPTOR_STRING),
160 '0' + CH_KERNEL_MAJOR, 0,
161 '0' + CH_KERNEL_MINOR, 0,
162 '0' + CH_KERNEL_PATCH, 0
168 static const USBDescriptor vcom_strings[] = {
169 {
sizeof vcom_string0, vcom_string0},
170 {
sizeof vcom_string1, vcom_string1},
171 {
sizeof vcom_string2, vcom_string2},
172 {
sizeof vcom_string3, vcom_string3}
177 #endif // USBDESCRIPTOR_H_INCLUDED
#define USBD1_INTERRUPT_REQUEST_EP
Definition: usbdescriptor.h:9
#define USBD1_DATA_AVAILABLE_EP
Definition: usbdescriptor.h:8
#define USBD1_DATA_REQUEST_EP
Definition: usbdescriptor.h:7