projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean up MassStorageKeyboard demo.
[pub/USBasp.git]
/
Demos
/
Device
/
ClassDriver
/
MassStorageKeyboard
/
Descriptors.c
diff --git
a/Demos/Device/ClassDriver/MassStorageKeyboard/Descriptors.c
b/Demos/Device/ClassDriver/MassStorageKeyboard/Descriptors.c
index
1deda8e
..
b779ea3
100644
(file)
--- a/
Demos/Device/ClassDriver/MassStorageKeyboard/Descriptors.c
+++ b/
Demos/Device/ClassDriver/MassStorageKeyboard/Descriptors.c
@@
-29,6
+29,10
@@
this software.
\r
*/
\r
\r
this software.
\r
*/
\r
\r
+#if (USE_INTERNAL_SERIAL == NO_DESCRIPTOR)
\r
+ #warning USE_INTERNAL_SERIAL is not available on this AVR - please manually construct a device serial descriptor.
\r
+#endif
\r
+
\r
/** \file
\r
*
\r
* USB Device Descriptors, for library use when in USB device mode. Descriptors are special
\r
/** \file
\r
*
\r
* USB Device Descriptors, for library use when in USB device mode. Descriptors are special
\r
@@
-129,7
+133,7
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.MaxPowerConsumption = USB_CONFIG_POWER_MA(100)
\r
},
\r
\r
.MaxPowerConsumption = USB_CONFIG_POWER_MA(100)
\r
},
\r
\r
- .Interface =
\r
+ .
MassStorage
Interface =
\r
{
\r
.Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},
\r
\r
{
\r
.Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},
\r
\r
@@
-145,7
+149,7
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.InterfaceStrIndex = NO_DESCRIPTOR
\r
},
\r
\r
.InterfaceStrIndex = NO_DESCRIPTOR
\r
},
\r
\r
- .DataInEndpoint =
\r
+ .
MassStorage
DataInEndpoint =
\r
{
\r
.Header = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},
\r
\r
{
\r
.Header = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},
\r
\r
@@
-155,7
+159,7
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.PollingIntervalMS = 0x00
\r
},
\r
\r
.PollingIntervalMS = 0x00
\r
},
\r
\r
- .DataOutEndpoint =
\r
+ .
MassStorage
DataOutEndpoint =
\r
{
\r
.Header = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},
\r
\r
{
\r
.Header = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},
\r
\r
@@
-181,8
+185,6
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.InterfaceStrIndex = NO_DESCRIPTOR
\r
},
\r
\r
.InterfaceStrIndex = NO_DESCRIPTOR
\r
},
\r
\r
-
\r
-
\r
.KeyboardHID =
\r
{
\r
.Header = {.Size = sizeof(USB_HID_Descriptor_t), .Type = DTYPE_HID},
\r
.KeyboardHID =
\r
{
\r
.Header = {.Size = sizeof(USB_HID_Descriptor_t), .Type = DTYPE_HID},
\r