Skip to content
GitLab
Menu
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
Demos/Device/LowLevel/RNDISEthernet/Descriptors.c
View file @
99abd1a8
...
@@ -139,7 +139,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
...
@@ -139,7 +139,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
CDC_NOTIFICATION_EPNUM
),
.
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
,
.
EndpointSize
=
CDC_NOTIFICATION_EPSIZE
,
.
PollingIntervalMS
=
0x02
.
PollingIntervalMS
=
0x02
},
},
...
@@ -165,7 +165,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
...
@@ -165,7 +165,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_OUT
|
CDC_RX_EPNUM
),
.
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
,
.
EndpointSize
=
CDC_TXRX_EPSIZE
,
.
PollingIntervalMS
=
0x00
.
PollingIntervalMS
=
0x00
},
},
...
@@ -175,7 +175,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
...
@@ -175,7 +175,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
CDC_TX_EPNUM
),
.
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
,
.
EndpointSize
=
CDC_TXRX_EPSIZE
,
.
PollingIntervalMS
=
0x00
.
PollingIntervalMS
=
0x00
}
}
...
...
Demos/Device/LowLevel/USBtoSerial/Descriptors.c
View file @
99abd1a8
...
@@ -139,7 +139,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
...
@@ -139,7 +139,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
CDC_NOTIFICATION_EPNUM
),
.
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
,
.
EndpointSize
=
CDC_NOTIFICATION_EPSIZE
,
.
PollingIntervalMS
=
0xFF
.
PollingIntervalMS
=
0xFF
},
},
...
@@ -165,7 +165,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
...
@@ -165,7 +165,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_OUT
|
CDC_RX_EPNUM
),
.
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
,
.
EndpointSize
=
CDC_TXRX_EPSIZE
,
.
PollingIntervalMS
=
0x00
.
PollingIntervalMS
=
0x00
},
},
...
@@ -175,7 +175,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
...
@@ -175,7 +175,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
CDC_TX_EPNUM
),
.
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
,
.
EndpointSize
=
CDC_TXRX_EPSIZE
,
.
PollingIntervalMS
=
0x00
.
PollingIntervalMS
=
0x00
}
}
...
...
Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c
View file @
99abd1a8
...
@@ -137,9 +137,6 @@ int main(void)
...
@@ -137,9 +137,6 @@ int main(void)
do
do
{
{
if
(
USB_HostState
!=
HOST_STATE_Configured
)
break
;
if
(
MS_Host_TestUnitReady
(
&
FlashDisk_MS_Interface
,
0
,
&
DeviceReady
))
if
(
MS_Host_TestUnitReady
(
&
FlashDisk_MS_Interface
,
0
,
&
DeviceReady
))
{
{
printf
(
"Error waiting for device to be ready.
\r\n
"
);
printf
(
"Error waiting for device to be ready.
\r\n
"
);
...
@@ -148,7 +145,7 @@ int main(void)
...
@@ -148,7 +145,7 @@ int main(void)
break
;
break
;
}
}
}
}
while
(
DeviceReady
==
false
);
while
(
!
(
DeviceReady
)
);
puts_P
(
PSTR
(
"Retrieving Capacity... "
));
puts_P
(
PSTR
(
"Retrieving Capacity... "
));
...
...
LUFA/ManPages/ChangeLog.txt
View file @
99abd1a8
...
@@ -14,8 +14,9 @@
...
@@ -14,8 +14,9 @@
*
*
* <b>Changed:</b>
* <b>Changed:</b>
* - SetIdle requests to the HID device driver with a 0 idle period (send changes only) now only affect the requested
* - SetIdle requests to the HID device driver with a 0 idle period (send changes only) now only affect the requested
* HID interface within the device, not all HID interfaces.
* HID interface within the device, not all HID interfaces
* - Added new CDC_Device_Flush() command to the CDC Class device driver.
* - Added new CDC_Device_Flush() command to the device mode CDC Class driver
* - Added explicit attribute masks to the device mode demos' descriptors
*
*
* <b>Fixed:</b>
* <b>Fixed:</b>
* - Fixed possible lockup in the CDC device class driver, when the host sends data that is a multiple of the
* - Fixed possible lockup in the CDC device class driver, when the host sends data that is a multiple of the
...
...
Projects/Benito/Descriptors.c
View file @
99abd1a8
...
@@ -139,7 +139,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
...
@@ -139,7 +139,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
CDC_NOTIFICATION_EPNUM
),
.
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
,
.
EndpointSize
=
CDC_NOTIFICATION_EPSIZE
,
.
PollingIntervalMS
=
0xFF
.
PollingIntervalMS
=
0xFF
},
},
...
@@ -165,7 +165,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
...
@@ -165,7 +165,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_OUT
|
CDC_RX_EPNUM
),
.
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
,
.
EndpointSize
=
CDC_TXRX_EPSIZE
,
.
PollingIntervalMS
=
0x00
.
PollingIntervalMS
=
0x00
},
},
...
@@ -175,7 +175,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
...
@@ -175,7 +175,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
CDC_TX_EPNUM
),
.
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
,
.
EndpointSize
=
CDC_TXRX_EPSIZE
,
.
PollingIntervalMS
=
0x00
.
PollingIntervalMS
=
0x00
}
}
...
...
Projects/Magstripe/Descriptors.c
View file @
99abd1a8
...
@@ -152,7 +152,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
...
@@ -152,7 +152,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Endpoint_t
),
.
Type
=
DTYPE_Endpoint
},
.
EndpointAddress
=
(
ENDPOINT_DESCRIPTOR_DIR_IN
|
KEYBOARD_EPNUM
),
.
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
,
.
EndpointSize
=
KEYBOARD_EPSIZE
,
.
PollingIntervalMS
=
0x01
.
PollingIntervalMS
=
0x01
},
},
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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