diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-01-03 03:48:40 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-01-03 03:48:40 +0000 |
commit | 58a39c6666cd9b085e402d5edc49d58fb759a9a3 (patch) | |
tree | 2a9e1015f8aa8cce034de6b3bd726492b36e70ac /Demos/Device/ClassDriver/MassStorageKeyboard/Descriptors.c | |
parent | 7f9f97c792dee6875fbca9806422bdd7d6c5a657 (diff) | |
download | lufa-58a39c6666cd9b085e402d5edc49d58fb759a9a3.tar.gz lufa-58a39c6666cd9b085e402d5edc49d58fb759a9a3.tar.bz2 lufa-58a39c6666cd9b085e402d5edc49d58fb759a9a3.zip |
Clean up MassStorageKeyboard demo.
Diffstat (limited to 'Demos/Device/ClassDriver/MassStorageKeyboard/Descriptors.c')
-rw-r--r-- | Demos/Device/ClassDriver/MassStorageKeyboard/Descriptors.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Demos/Device/ClassDriver/MassStorageKeyboard/Descriptors.c b/Demos/Device/ClassDriver/MassStorageKeyboard/Descriptors.c index 1deda8e02..b779ea342 100644 --- a/Demos/Device/ClassDriver/MassStorageKeyboard/Descriptors.c +++ b/Demos/Device/ClassDriver/MassStorageKeyboard/Descriptors.c @@ -29,6 +29,10 @@ this software.
*/
+#if (USE_INTERNAL_SERIAL == NO_DESCRIPTOR)
+ #warning USE_INTERNAL_SERIAL is not available on this AVR - please manually construct a device serial descriptor.
+#endif
+
/** \file
*
* USB Device Descriptors, for library use when in USB device mode. Descriptors are special
@@ -129,7 +133,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = .MaxPowerConsumption = USB_CONFIG_POWER_MA(100)
},
- .Interface =
+ .MassStorageInterface =
{
.Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},
@@ -145,7 +149,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = .InterfaceStrIndex = NO_DESCRIPTOR
},
- .DataInEndpoint =
+ .MassStorageDataInEndpoint =
{
.Header = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},
@@ -155,7 +159,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = .PollingIntervalMS = 0x00
},
- .DataOutEndpoint =
+ .MassStorageDataOutEndpoint =
{
.Header = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},
@@ -181,8 +185,6 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = .InterfaceStrIndex = NO_DESCRIPTOR
},
-
-
.KeyboardHID =
{
.Header = {.Size = sizeof(USB_HID_Descriptor_t), .Type = DTYPE_HID},
|