projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Oops: Really disable building of Projects/Host/ClassDriver directory in the Projects...
[pub/USBasp.git]
/
Demos
/
Device
/
ClassDriver
/
USBtoSerial
/
Descriptors.c
diff --git
a/Demos/Device/ClassDriver/USBtoSerial/Descriptors.c
b/Demos/Device/ClassDriver/USBtoSerial/Descriptors.c
index
c369d16
..
f88a5f8
100644
(file)
--- a/
Demos/Device/ClassDriver/USBtoSerial/Descriptors.c
+++ b/
Demos/Device/ClassDriver/USBtoSerial/Descriptors.c
@@
-59,9
+59,9
@@
USB_Descriptor_Device_t PROGMEM DeviceDescriptor =
\r
.ManufacturerStrIndex = 0x01,
\r
.ProductStrIndex = 0x02,
\r
\r
.ManufacturerStrIndex = 0x01,
\r
.ProductStrIndex = 0x02,
\r
- .SerialNumStrIndex =
NO_DESCRIPTOR
,
\r
+ .SerialNumStrIndex =
USE_INTERNAL_SERIAL
,
\r
\r
\r
- .NumberOfConfigurations =
1
\r
+ .NumberOfConfigurations =
FIXED_NUM_CONFIGURATIONS
\r
};
\r
\r
/** Configuration descriptor structure. This descriptor, located in FLASH memory, describes the usage
\r
};
\r
\r
/** Configuration descriptor structure. This descriptor, located in FLASH memory, describes the usage
\r
@@
-137,9
+137,9
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.ManagementEndpoint =
\r
{
\r
.Header = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},
\r
.ManagementEndpoint =
\r
{
\r
.Header = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},
\r
-
\r
+
\r
.EndpointAddress = (ENDPOINT_DESCRIPTOR_DIR_IN | CDC_NOTIFICATION_EPNUM),
\r
.EndpointAddress = (ENDPOINT_DESCRIPTOR_DIR_IN | CDC_NOTIFICATION_EPNUM),
\r
- .Attributes =
EP_TYPE_INTERRUPT
,
\r
+ .Attributes =
(EP_TYPE_INTERRUPT | ENDPOINT_ATTR_NO_SYNC | ENDPOINT_USAGE_DATA)
,
\r
.EndpointSize = CDC_NOTIFICATION_EPSIZE,
\r
.PollingIntervalMS = 0xFF
\r
},
\r
.EndpointSize = CDC_NOTIFICATION_EPSIZE,
\r
.PollingIntervalMS = 0xFF
\r
},
\r
@@
-163,9
+163,9
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.DataOutEndpoint =
\r
{
\r
.Header = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},
\r
.DataOutEndpoint =
\r
{
\r
.Header = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},
\r
-
\r
+
\r
.EndpointAddress = (ENDPOINT_DESCRIPTOR_DIR_OUT | CDC_RX_EPNUM),
\r
.EndpointAddress = (ENDPOINT_DESCRIPTOR_DIR_OUT | CDC_RX_EPNUM),
\r
- .Attributes =
EP_TYPE_BULK
,
\r
+ .Attributes =
(EP_TYPE_BULK | ENDPOINT_ATTR_NO_SYNC | ENDPOINT_USAGE_DATA)
,
\r
.EndpointSize = CDC_TXRX_EPSIZE,
\r
.PollingIntervalMS = 0x00
\r
},
\r
.EndpointSize = CDC_TXRX_EPSIZE,
\r
.PollingIntervalMS = 0x00
\r
},
\r
@@
-173,11
+173,11
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.DataInEndpoint =
\r
{
\r
.Header = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},
\r
.DataInEndpoint =
\r
{
\r
.Header = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},
\r
-
\r
+
\r
.EndpointAddress = (ENDPOINT_DESCRIPTOR_DIR_IN | CDC_TX_EPNUM),
\r
.EndpointAddress = (ENDPOINT_DESCRIPTOR_DIR_IN | CDC_TX_EPNUM),
\r
- .Attributes
= EP_TYPE_BULK
,
\r
+ .Attributes
= (EP_TYPE_BULK | ENDPOINT_ATTR_NO_SYNC | ENDPOINT_USAGE_DATA)
,
\r
.EndpointSize = CDC_TXRX_EPSIZE,
\r
.EndpointSize = CDC_TXRX_EPSIZE,
\r
- .PollingIntervalMS
=
0x00
\r
+ .PollingIntervalMS
=
0x00
\r
}
\r
};
\r
\r
}
\r
};
\r
\r