projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Standardized the naming scheme given to configuration descriptor sub-elements in...
[pub/USBasp.git]
/
Demos
/
Device
/
ClassDriver
/
KeyboardMouse
/
Descriptors.c
diff --git
a/Demos/Device/ClassDriver/KeyboardMouse/Descriptors.c
b/Demos/Device/ClassDriver/KeyboardMouse/Descriptors.c
index
69eaf7c
..
2818b6e
100644
(file)
--- a/
Demos/Device/ClassDriver/KeyboardMouse/Descriptors.c
+++ b/
Demos/Device/ClassDriver/KeyboardMouse/Descriptors.c
@@
-162,7
+162,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
- .KeyboardInterface =
\r
+ .
HID1_
KeyboardInterface =
\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
@@
-178,7
+178,7
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.InterfaceStrIndex = NO_DESCRIPTOR
\r
},
\r
\r
.InterfaceStrIndex = NO_DESCRIPTOR
\r
},
\r
\r
- .KeyboardHID =
\r
+ .
HID1_
KeyboardHID =
\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
@@
-189,7
+189,7
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.HIDReportLength = sizeof(KeyboardReport)
\r
},
\r
\r
.HIDReportLength = sizeof(KeyboardReport)
\r
},
\r
\r
- .
KeyboardIn
Endpoint =
\r
+ .
HID1_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
@@
-199,7
+199,7
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.PollingIntervalMS = 0x0A
\r
},
\r
\r
.PollingIntervalMS = 0x0A
\r
},
\r
\r
- .MouseInterface =
\r
+ .
HID2_
MouseInterface =
\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
@@
-215,7
+215,7
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.InterfaceStrIndex = NO_DESCRIPTOR
\r
},
\r
\r
.InterfaceStrIndex = NO_DESCRIPTOR
\r
},
\r
\r
- .MouseHID =
\r
+ .
HID2_
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
@@
-226,7
+226,7
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.HIDReportLength = sizeof(MouseReport)
\r
},
\r
\r
.HIDReportLength = sizeof(MouseReport)
\r
},
\r
\r
- .
MouseIn
Endpoint =
\r
+ .
HID2_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
@@
-315,12
+315,12
@@
uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, const uint8_t wIndex,
case DTYPE_HID:
\r
if (!(wIndex))
\r
{
\r
case DTYPE_HID:
\r
if (!(wIndex))
\r
{
\r
- Address = (void*)&ConfigurationDescriptor.KeyboardHID;
\r
+ Address = (void*)&ConfigurationDescriptor.
HID1_
KeyboardHID;
\r
Size = sizeof(USB_HID_Descriptor_t);
\r
}
\r
else
\r
{
\r
Size = sizeof(USB_HID_Descriptor_t);
\r
}
\r
else
\r
{
\r
- Address = (void*)&ConfigurationDescriptor.MouseHID;
\r
+ Address = (void*)&ConfigurationDescriptor.
HID2_
MouseHID;
\r
Size = sizeof(USB_HID_Descriptor_t);
\r
}
\r
break;
\r
Size = sizeof(USB_HID_Descriptor_t);
\r
}
\r
break;
\r