projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added incomplete MIDIToneGenerator project.
[pub/USBasp.git]
/
Demos
/
Device
/
ClassDriver
/
VirtualSerialMouse
/
Descriptors.c
diff --git
a/Demos/Device/ClassDriver/VirtualSerialMouse/Descriptors.c
b/Demos/Device/ClassDriver/VirtualSerialMouse/Descriptors.c
index
b2c8ae2
..
c55aa0c
100644
(file)
--- a/
Demos/Device/ClassDriver/VirtualSerialMouse/Descriptors.c
+++ b/
Demos/Device/ClassDriver/VirtualSerialMouse/Descriptors.c
@@
-148,7
+148,7
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.IADStrIndex = NO_DESCRIPTOR
\r
},
\r
\r
.IADStrIndex = NO_DESCRIPTOR
\r
},
\r
\r
- .CCI_Interface =
\r
+ .C
DC_C
CI_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
@@
-196,7
+196,7
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.Data = {0x00, 0x01}
\r
},
\r
\r
.Data = {0x00, 0x01}
\r
},
\r
\r
- .ManagementEndpoint =
\r
+ .
CDC_
ManagementEndpoint =
\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
@@
-206,7
+206,7
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.PollingIntervalMS = 0xFF
\r
},
\r
\r
.PollingIntervalMS = 0xFF
\r
},
\r
\r
- .DCI_Interface =
\r
+ .
CDC_
DCI_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
@@
-222,7
+222,7
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.InterfaceStrIndex = NO_DESCRIPTOR
\r
},
\r
\r
.InterfaceStrIndex = NO_DESCRIPTOR
\r
},
\r
\r
- .DataOutEndpoint =
\r
+ .
CDC_
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
@@
-232,7
+232,7
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.PollingIntervalMS = 0x00
\r
},
\r
\r
.PollingIntervalMS = 0x00
\r
},
\r
\r
- .DataInEndpoint =
\r
+ .
CDC_
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
@@
-242,11
+242,11
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.PollingIntervalMS = 0x00
\r
},
\r
\r
.PollingIntervalMS = 0x00
\r
},
\r
\r
- .
InterfaceHID
=
\r
+ .
HID_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
- .InterfaceNumber =
3
,
\r
+ .InterfaceNumber =
2
,
\r
.AlternateSetting = 0,
\r
\r
.TotalEndpoints = 1,
\r
.AlternateSetting = 0,
\r
\r
.TotalEndpoints = 1,
\r
@@
-258,7
+258,7
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.InterfaceStrIndex = NO_DESCRIPTOR
\r
},
\r
\r
.InterfaceStrIndex = NO_DESCRIPTOR
\r
},
\r
\r
- .MouseHID =
\r
+ .
HID_
MouseHID =
\r
{
\r
.Header = {.Size = sizeof(USB_HID_Descriptor_t), .Type = DTYPE_HID},
\r
\r
{
\r
.Header = {.Size = sizeof(USB_HID_Descriptor_t), .Type = DTYPE_HID},
\r
\r
@@
-269,7
+269,7
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.HIDReportLength = sizeof(MouseReport)
\r
},
\r
\r
.HIDReportLength = sizeof(MouseReport)
\r
},
\r
\r
- .
Mouse
Endpoint =
\r
+ .
HID_ReportIN
Endpoint =
\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
@@
-356,7
+356,7
@@
uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, const uint8_t wIndex,
\r
break;
\r
case DTYPE_HID:
\r
\r
break;
\r
case DTYPE_HID:
\r
- Address = (void*)&ConfigurationDescriptor.MouseHID;
\r
+ Address = (void*)&ConfigurationDescriptor.
HID_
MouseHID;
\r
Size = sizeof(USB_HID_Descriptor_t);
\r
break;
\r
case DTYPE_Report:
\r
Size = sizeof(USB_HID_Descriptor_t);
\r
break;
\r
case DTYPE_Report:
\r