aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/usb/descriptors.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmaple/usb/descriptors.h')
-rw-r--r--libmaple/usb/descriptors.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/libmaple/usb/descriptors.h b/libmaple/usb/descriptors.h
index 77ff3bb..06d9ce7 100644
--- a/libmaple/usb/descriptors.h
+++ b/libmaple/usb/descriptors.h
@@ -25,7 +25,6 @@
#ifndef __DESCRIPTORS_H
#define __DESCRIPTORS_H
-
#include "libmaple.h"
#define USB_DESCRIPTOR_TYPE_DEVICE 0x01
@@ -52,7 +51,6 @@
#define USB_DESCRIPTOR_STRING_LEN(x) (2 + (x << 1))
-
#if defined(__cplusplus)
extern "C" {
#endif
@@ -74,7 +72,6 @@ extern "C" {
uint8 Data[DataSize]; \
} __packed
-/* See http://www.beyondlogic.org/usbnutshell/usb5.shtml#DeviceDescriptors */
typedef struct {
uint8 bLength;
uint8 bDescriptorType;
@@ -92,7 +89,6 @@ typedef struct {
uint8 bNumConfigurations;
} __packed USB_Descriptor_Device;
-/* http://www.beyondlogic.org/usbnutshell/usb5.shtml#ConfigurationDescriptors */
typedef struct {
uint8 bLength;
uint8 bDescriptorType;
@@ -104,7 +100,6 @@ typedef struct {
uint8 bMaxPower;
} __packed USB_Descriptor_Config_Header;
-/* See http://www.beyondlogic.org/usbnutshell/usb5.shtml#InterfaceDescriptors */
typedef struct {
uint8 bLength;
uint8 bDescriptorType;
@@ -154,7 +149,7 @@ extern const uint8 usbVcomDescriptor_iManufacturer[USB_DESCRIPTOR_STRING_LEN(8)]
extern const uint8 usbVcomDescriptor_iProduct[USB_DESCRIPTOR_STRING_LEN(8)];
#if defined(__cplusplus)
- }
+}
#endif
#endif // __DESCRIPTORS_H