projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added CDC functional descriptor structs to the Low Level CDC demos and CDC class...
[pub/USBasp.git]
/
Bootloaders
/
CDC
/
Descriptors.c
diff --git
a/Bootloaders/CDC/Descriptors.c
b/Bootloaders/CDC/Descriptors.c
index
092ee2f
..
b86b213
100644
(file)
--- a/
Bootloaders/CDC/Descriptors.c
+++ b/
Bootloaders/CDC/Descriptors.c
@@
-55,7
+55,7
@@
USB_Descriptor_Device_t DeviceDescriptor =
.VendorID = 0x03EB,
.ProductID = 0x204A,
.VendorID = 0x03EB,
.ProductID = 0x204A,
- .ReleaseNumber = 0x000
0
,
+ .ReleaseNumber = 0x000
2
,
.ManufacturerStrIndex = NO_DESCRIPTOR,
.ProductStrIndex = 0x01,
.ManufacturerStrIndex = NO_DESCRIPTOR,
.ProductStrIndex = 0x01,
@@
-102,29
+102,30
@@
USB_Descriptor_Configuration_t ConfigurationDescriptor =
.InterfaceStrIndex = NO_DESCRIPTOR
},
.InterfaceStrIndex = NO_DESCRIPTOR
},
- .CDC_Functional_
Int
Header =
+ .CDC_Functional_Header =
{
{
- .Header = {.Size = sizeof(
CDC_FUNCTIONAL_DESCRIPTOR(2)), .Type = 0x24
},
- .Sub
T
ype = 0x00,
+ .Header = {.Size = sizeof(
USB_Descriptor_CDC_FunctionalHeader_t), .Type = DTYPE_CSInterface
},
+ .Sub
t
ype = 0x00,
- .
Data = {0x10, 0x01}
+ .
CDCSpecification = VERSION_BCD(01.10),
},
},
- .CDC_Functional_A
bstractControlManagement
=
+ .CDC_Functional_A
CM
=
{
{
- .Header = {.Size = sizeof(
CDC_FUNCTIONAL_DESCRIPTOR(1)), .Type = 0x24
},
- .Sub
T
ype = 0x02,
+ .Header = {.Size = sizeof(
USB_Descriptor_CDC_FunctionalACM_t), .Type = DTYPE_CSInterface
},
+ .Sub
t
ype = 0x02,
- .
Data = {0x06}
+ .
Capabilities = 0x04,
},
.CDC_Functional_Union =
{
},
.CDC_Functional_Union =
{
- .Header = {.Size = sizeof(
CDC_FUNCTIONAL_DESCRIPTOR(2)), .Type = 0x24
},
- .Sub
T
ype = 0x06,
+ .Header = {.Size = sizeof(
USB_Descriptor_CDC_FunctionalUnion_t), .Type = DTYPE_CSInterface
},
+ .Sub
t
ype = 0x06,
- .Data = {0x00, 0x01}
- },
+ .MasterInterfaceNumber = 0,
+ .SlaveInterfaceNumber = 1,
+ },
.CDC_NotificationEndpoint =
{
.CDC_NotificationEndpoint =
{