Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
99abd1a8
Commit
99abd1a8
authored
Aug 13, 2009
by
Dean Camera
Browse files
Added explicit attribute masks to the device mode demos' descriptors.
parent
df5500e8
Changes
26
Hide whitespace changes
Inline
Side-by-side
Bootloaders/CDC/Descriptors.c
View file @
99abd1a8
...
...
@@ -139,7 +139,7 @@ USB_Descriptor_Configuration_t ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
CDC_NOTIFICATION_EPNUM
),
.
Attributes
=
EP_TYPE_INTERRUPT
,
.
Attributes
=
(
EP_TYPE_INTERRUPT
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_NOTIFICATION_EPSIZE
,
.
PollingIntervalMS
=
0x02
},
...
...
@@ -165,7 +165,7 @@ USB_Descriptor_Configuration_t ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_OUT
|
CDC_RX_EPNUM
),
.
Attributes
=
EP_TYPE_BULK
,
.
Attributes
=
(
EP_TYPE_BULK
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_TXRX_EPSIZE
,
.
PollingIntervalMS
=
0x00
},
...
...
@@ -175,7 +175,7 @@ USB_Descriptor_Configuration_t ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
CDC_TX_EPNUM
),
.
Attributes
=
EP_TYPE_BULK
,
.
Attributes
=
(
EP_TYPE_BULK
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_TXRX_EPSIZE
,
.
PollingIntervalMS
=
0x00
}
...
...
Bootloaders/TeensyHID/Descriptors.c
View file @
99abd1a8
...
...
@@ -138,7 +138,7 @@ USB_Descriptor_Configuration_t ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
HID_EPNUM
),
.
Attributes
=
EP_TYPE_INTERRUPT
,
.
Attributes
=
(
EP_TYPE_INTERRUPT
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
HID_EPSIZE
,
.
PollingIntervalMS
=
0x40
},
...
...
Demos/Device/ClassDriver/CDC/Descriptors.c
View file @
99abd1a8
...
...
@@ -139,7 +139,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
CDC_NOTIFICATION_EPNUM
),
.
Attributes
=
EP_TYPE_INTERRUPT
,
.
Attributes
=
(
EP_TYPE_INTERRUPT
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_NOTIFICATION_EPSIZE
,
.
PollingIntervalMS
=
0xFF
},
...
...
@@ -165,7 +165,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_OUT
|
CDC_RX_EPNUM
),
.
Attributes
=
EP_TYPE_BULK
,
.
Attributes
=
(
EP_TYPE_BULK
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_TXRX_EPSIZE
,
.
PollingIntervalMS
=
0x00
},
...
...
@@ -175,7 +175,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
CDC_TX_EPNUM
),
.
Attributes
=
EP_TYPE_BULK
,
.
Attributes
=
(
EP_TYPE_BULK
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_TXRX_EPSIZE
,
.
PollingIntervalMS
=
0x00
}
...
...
Demos/Device/ClassDriver/DualCDC/Descriptors.c
View file @
99abd1a8
...
...
@@ -153,7 +153,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
CDC1_NOTIFICATION_EPNUM
),
.
Attributes
=
EP_TYPE_INTERRUPT
,
.
Attributes
=
(
EP_TYPE_INTERRUPT
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_NOTIFICATION_EPSIZE
,
.
PollingIntervalMS
=
0xFF
},
...
...
@@ -179,7 +179,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_OUT
|
CDC1_RX_EPNUM
),
.
Attributes
=
EP_TYPE_BULK
,
.
Attributes
=
(
EP_TYPE_BULK
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_TXRX_EPSIZE
,
.
PollingIntervalMS
=
0x00
},
...
...
@@ -189,7 +189,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
CDC1_TX_EPNUM
),
.
Attributes
=
EP_TYPE_BULK
,
.
Attributes
=
(
EP_TYPE_BULK
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_TXRX_EPSIZE
,
.
PollingIntervalMS
=
0x00
},
...
...
@@ -261,7 +261,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
CDC2_NOTIFICATION_EPNUM
),
.
Attributes
=
EP_TYPE_INTERRUPT
,
.
Attributes
=
(
EP_TYPE_INTERRUPT
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_NOTIFICATION_EPSIZE
,
.
PollingIntervalMS
=
0xFF
},
...
...
@@ -287,7 +287,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_OUT
|
CDC2_RX_EPNUM
),
.
Attributes
=
EP_TYPE_BULK
,
.
Attributes
=
(
EP_TYPE_BULK
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_TXRX_EPSIZE
,
.
PollingIntervalMS
=
0x00
},
...
...
@@ -297,7 +297,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
CDC2_TX_EPNUM
),
.
Attributes
=
EP_TYPE_BULK
,
.
Attributes
=
(
EP_TYPE_BULK
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_TXRX_EPSIZE
,
.
PollingIntervalMS
=
0x00
}
...
...
Demos/Device/ClassDriver/GenericHID/Descriptors.c
View file @
99abd1a8
...
...
@@ -144,7 +144,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
GENERIC_IN_EPNUM
),
.
Attributes
=
EP_TYPE_INTERRUPT
,
.
Attributes
=
(
EP_TYPE_INTERRUPT
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
GENERIC_EPSIZE
,
.
PollingIntervalMS
=
0x02
},
...
...
Demos/Device/ClassDriver/Joystick/Descriptors.c
View file @
99abd1a8
...
...
@@ -154,7 +154,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
JOYSTICK_EPNUM
),
.
Attributes
=
EP_TYPE_INTERRUPT
,
.
Attributes
=
(
EP_TYPE_INTERRUPT
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
JOYSTICK_EPSIZE
,
.
PollingIntervalMS
=
0x02
}
...
...
Demos/Device/ClassDriver/Keyboard/Descriptors.c
View file @
99abd1a8
...
...
@@ -161,7 +161,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
KEYBOARD_EPNUM
),
.
Attributes
=
EP_TYPE_INTERRUPT
,
.
Attributes
=
(
EP_TYPE_INTERRUPT
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
KEYBOARD_EPSIZE
,
.
PollingIntervalMS
=
0x04
},
...
...
Demos/Device/ClassDriver/KeyboardMouse/Descriptors.c
View file @
99abd1a8
...
...
@@ -194,7 +194,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
KEYBOARD_IN_EPNUM
),
.
Attributes
=
EP_TYPE_INTERRUPT
,
.
Attributes
=
(
EP_TYPE_INTERRUPT
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
HID_EPSIZE
,
.
PollingIntervalMS
=
0x02
},
...
...
@@ -231,7 +231,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
MOUSE_IN_EPNUM
),
.
Attributes
=
EP_TYPE_INTERRUPT
,
.
Attributes
=
(
EP_TYPE_INTERRUPT
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
HID_EPSIZE
,
.
PollingIntervalMS
=
0x02
}
...
...
Demos/Device/ClassDriver/MassStorage/Descriptors.c
View file @
99abd1a8
...
...
@@ -107,7 +107,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
MASS_STORAGE_IN_EPNUM
),
.
Attributes
=
EP_TYPE_BULK
,
.
Attributes
=
(
EP_TYPE_BULK
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
MASS_STORAGE_IO_EPSIZE
,
.
PollingIntervalMS
=
0x00
},
...
...
@@ -117,7 +117,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_OUT
|
MASS_STORAGE_OUT_EPNUM
),
.
Attributes
=
EP_TYPE_BULK
,
.
Attributes
=
(
EP_TYPE_BULK
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
MASS_STORAGE_IO_EPSIZE
,
.
PollingIntervalMS
=
0x00
}
...
...
Demos/Device/ClassDriver/Mouse/Descriptors.c
View file @
99abd1a8
...
...
@@ -154,7 +154,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
MOUSE_EPNUM
),
.
Attributes
=
EP_TYPE_INTERRUPT
,
.
Attributes
=
(
EP_TYPE_INTERRUPT
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
MOUSE_EPSIZE
,
.
PollingIntervalMS
=
0x02
}
...
...
Demos/Device/ClassDriver/RNDISEthernet/Descriptors.c
View file @
99abd1a8
...
...
@@ -139,7 +139,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
CDC_NOTIFICATION_EPNUM
),
.
Attributes
=
EP_TYPE_INTERRUPT
,
.
Attributes
=
(
EP_TYPE_INTERRUPT
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_NOTIFICATION_EPSIZE
,
.
PollingIntervalMS
=
0x02
},
...
...
@@ -165,7 +165,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_OUT
|
CDC_RX_EPNUM
),
.
Attributes
=
EP_TYPE_BULK
,
.
Attributes
=
(
EP_TYPE_BULK
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_TXRX_EPSIZE
,
.
PollingIntervalMS
=
0x00
},
...
...
@@ -175,7 +175,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
CDC_TX_EPNUM
),
.
Attributes
=
EP_TYPE_BULK
,
.
Attributes
=
(
EP_TYPE_BULK
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_TXRX_EPSIZE
,
.
PollingIntervalMS
=
0x00
}
...
...
Demos/Device/ClassDriver/USBtoSerial/Descriptors.c
View file @
99abd1a8
...
...
@@ -139,7 +139,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
CDC_NOTIFICATION_EPNUM
),
.
Attributes
=
EP_TYPE_INTERRUPT
,
.
Attributes
=
(
EP_TYPE_INTERRUPT
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_NOTIFICATION_EPSIZE
,
.
PollingIntervalMS
=
0xFF
},
...
...
@@ -165,7 +165,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_OUT
|
CDC_RX_EPNUM
),
.
Attributes
=
EP_TYPE_BULK
,
.
Attributes
=
(
EP_TYPE_BULK
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_TXRX_EPSIZE
,
.
PollingIntervalMS
=
0x00
},
...
...
@@ -175,7 +175,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
CDC_TX_EPNUM
),
.
Attributes
=
EP_TYPE_BULK
,
.
Attributes
=
(
EP_TYPE_BULK
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_TXRX_EPSIZE
,
.
PollingIntervalMS
=
0x00
}
...
...
Demos/Device/LowLevel/CDC/Descriptors.c
View file @
99abd1a8
...
...
@@ -139,7 +139,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
CDC_NOTIFICATION_EPNUM
),
.
Attributes
=
EP_TYPE_INTERRUPT
,
.
Attributes
=
(
EP_TYPE_INTERRUPT
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_NOTIFICATION_EPSIZE
,
.
PollingIntervalMS
=
0xFF
},
...
...
@@ -165,7 +165,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_OUT
|
CDC_RX_EPNUM
),
.
Attributes
=
EP_TYPE_BULK
,
.
Attributes
=
(
EP_TYPE_BULK
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_TXRX_EPSIZE
,
.
PollingIntervalMS
=
0x00
},
...
...
@@ -175,7 +175,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
CDC_TX_EPNUM
),
.
Attributes
=
EP_TYPE_BULK
,
.
Attributes
=
(
EP_TYPE_BULK
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_TXRX_EPSIZE
,
.
PollingIntervalMS
=
0x00
}
...
...
Demos/Device/LowLevel/DualCDC/Descriptors.c
View file @
99abd1a8
...
...
@@ -153,7 +153,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
CDC1_NOTIFICATION_EPNUM
),
.
Attributes
=
EP_TYPE_INTERRUPT
,
.
Attributes
=
(
EP_TYPE_INTERRUPT
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_NOTIFICATION_EPSIZE
,
.
PollingIntervalMS
=
0xFF
},
...
...
@@ -179,7 +179,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_OUT
|
CDC1_RX_EPNUM
),
.
Attributes
=
EP_TYPE_BULK
,
.
Attributes
=
(
EP_TYPE_BULK
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_TXRX_EPSIZE
,
.
PollingIntervalMS
=
0x00
},
...
...
@@ -189,7 +189,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
CDC1_TX_EPNUM
),
.
Attributes
=
EP_TYPE_BULK
,
.
Attributes
=
(
EP_TYPE_BULK
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_TXRX_EPSIZE
,
.
PollingIntervalMS
=
0x00
},
...
...
@@ -261,7 +261,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
CDC2_NOTIFICATION_EPNUM
),
.
Attributes
=
EP_TYPE_INTERRUPT
,
.
Attributes
=
(
EP_TYPE_INTERRUPT
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_NOTIFICATION_EPSIZE
,
.
PollingIntervalMS
=
0xFF
},
...
...
@@ -287,7 +287,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_OUT
|
CDC2_RX_EPNUM
),
.
Attributes
=
EP_TYPE_BULK
,
.
Attributes
=
(
EP_TYPE_BULK
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_TXRX_EPSIZE
,
.
PollingIntervalMS
=
0x00
},
...
...
@@ -297,7 +297,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
CDC2_TX_EPNUM
),
.
Attributes
=
EP_TYPE_BULK
,
.
Attributes
=
(
EP_TYPE_BULK
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
CDC_TXRX_EPSIZE
,
.
PollingIntervalMS
=
0x00
}
...
...
Demos/Device/LowLevel/GenericHID/Descriptors.c
View file @
99abd1a8
...
...
@@ -144,7 +144,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
GENERIC_IN_EPNUM
),
.
Attributes
=
EP_TYPE_INTERRUPT
,
.
Attributes
=
(
EP_TYPE_INTERRUPT
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
GENERIC_EPSIZE
,
.
PollingIntervalMS
=
0x02
},
...
...
@@ -154,7 +154,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_OUT
|
GENERIC_OUT_EPNUM
),
.
Attributes
=
EP_TYPE_INTERRUPT
,
.
Attributes
=
(
EP_TYPE_INTERRUPT
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
GENERIC_EPSIZE
,
.
PollingIntervalMS
=
0x02
}
...
...
Demos/Device/LowLevel/Joystick/Descriptors.c
View file @
99abd1a8
...
...
@@ -154,7 +154,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
JOYSTICK_EPNUM
),
.
Attributes
=
EP_TYPE_INTERRUPT
,
.
Attributes
=
(
EP_TYPE_INTERRUPT
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
JOYSTICK_EPSIZE
,
.
PollingIntervalMS
=
0x02
}
...
...
Demos/Device/LowLevel/Keyboard/Descriptors.c
View file @
99abd1a8
...
...
@@ -161,7 +161,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
KEYBOARD_EPNUM
),
.
Attributes
=
EP_TYPE_INTERRUPT
,
.
Attributes
=
(
EP_TYPE_INTERRUPT
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
KEYBOARD_EPSIZE
,
.
PollingIntervalMS
=
0x04
},
...
...
@@ -171,7 +171,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_OUT
|
KEYBOARD_LEDS_EPNUM
),
.
Attributes
=
EP_TYPE_INTERRUPT
,
.
Attributes
=
(
EP_TYPE_INTERRUPT
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
KEYBOARD_EPSIZE
,
.
PollingIntervalMS
=
0x04
}
...
...
Demos/Device/LowLevel/KeyboardMouse/Descriptors.c
View file @
99abd1a8
...
...
@@ -194,7 +194,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
KEYBOARD_IN_EPNUM
),
.
Attributes
=
EP_TYPE_INTERRUPT
,
.
Attributes
=
(
EP_TYPE_INTERRUPT
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
HID_EPSIZE
,
.
PollingIntervalMS
=
0x02
},
...
...
@@ -204,7 +204,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_OUT
|
KEYBOARD_OUT_EPNUM
),
.
Attributes
=
EP_TYPE_INTERRUPT
,
.
Attributes
=
(
EP_TYPE_INTERRUPT
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
HID_EPSIZE
,
.
PollingIntervalMS
=
0x02
},
...
...
@@ -241,7 +241,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
MOUSE_IN_EPNUM
),
.
Attributes
=
EP_TYPE_INTERRUPT
,
.
Attributes
=
(
EP_TYPE_INTERRUPT
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
HID_EPSIZE
,
.
PollingIntervalMS
=
0x02
}
...
...
Demos/Device/LowLevel/MassStorage/Descriptors.c
View file @
99abd1a8
...
...
@@ -107,7 +107,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
MASS_STORAGE_IN_EPNUM
),
.
Attributes
=
EP_TYPE_BULK
,
.
Attributes
=
(
EP_TYPE_BULK
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
MASS_STORAGE_IO_EPSIZE
,
.
PollingIntervalMS
=
0x00
},
...
...
@@ -117,7 +117,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_OUT
|
MASS_STORAGE_OUT_EPNUM
),
.
Attributes
=
EP_TYPE_BULK
,
.
Attributes
=
(
EP_TYPE_BULK
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
MASS_STORAGE_IO_EPSIZE
,
.
PollingIntervalMS
=
0x00
}
...
...
Demos/Device/LowLevel/Mouse/Descriptors.c
View file @
99abd1a8
...
...
@@ -154,7 +154,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
MOUSE_EPNUM
),
.
Attributes
=
EP_TYPE_INTERRUPT
,
.
Attributes
=
(
EP_TYPE_INTERRUPT
|
ENDPOINT_ATTR_NO_SYNC
|
ENDPOINT_USAGE_DATA
)
,
.
EndpointSize
=
MOUSE_EPSIZE
,
.
PollingIntervalMS
=
0x02
}
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment