diff options
Diffstat (limited to 'core/usb/descriptors.h')
-rw-r--r-- | core/usb/descriptors.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/usb/descriptors.h b/core/usb/descriptors.h index d1918e3..45d791d 100644 --- a/core/usb/descriptors.h +++ b/core/usb/descriptors.h @@ -22,6 +22,9 @@ #define EP_TYPE_INTERRUPT 0x03 #define EP_TYPE_BULK 0x02 +#define USB_DESCRIPTOR_ENDPOINT_IN 0x80 +#define USB_DESCRIPTOR_ENDPOINT_OUT 0x00 + #define USB_DESCRIPTOR_STRING_LEN(x) (2 + (x << 1)) #define CDC_FUCNTIONAL_DESCRIPTOR(DataSize) \ @@ -101,6 +104,11 @@ typedef struct { uint16 bString[]; } USB_Descriptor_String; +extern const USB_Descriptor_Device usbVcomDescriptor_Device; +extern const USB_Descriptor_Config usbVcomDescriptor_Config; +extern const USB_Descriptor_String usbVcomDescriptor_LandID; +extern const USB_Descriptor_String usbVcomDescriptor_iManufacturer; +extern const USB_Descriptor_String usbVcomDescriptor_iProduct; #if defined(__cplusplus) } |