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
/
LowLevel
/
GenericHID
/
Descriptors.c
diff --git
a/Demos/Device/LowLevel/GenericHID/Descriptors.c
b/Demos/Device/LowLevel/GenericHID/Descriptors.c
index
8e99683
..
d3afa86
100644
(file)
--- a/
Demos/Device/LowLevel/GenericHID/Descriptors.c
+++ b/
Demos/Device/LowLevel/GenericHID/Descriptors.c
@@
-112,7
+112,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
- .Interface =
\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
@@
-128,7
+128,7
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.InterfaceStrIndex = NO_DESCRIPTOR
\r
},
\r
\r
.InterfaceStrIndex = NO_DESCRIPTOR
\r
},
\r
\r
- .GenericHID =
\r
+ .
HID_
GenericHID =
\r
{
\r
.Header = {.Size = sizeof(USB_Descriptor_HID_t), .Type = DTYPE_HID},
\r
\r
{
\r
.Header = {.Size = sizeof(USB_Descriptor_HID_t), .Type = DTYPE_HID},
\r
\r
@@
-139,7
+139,7
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.HIDReportLength = sizeof(GenericReport)
\r
},
\r
\r
.HIDReportLength = sizeof(GenericReport)
\r
},
\r
\r
- .
Generic
INEndpoint =
\r
+ .
HID_Report
INEndpoint =
\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
@@
-149,7
+149,7
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.PollingIntervalMS = 0x0A
\r
},
\r
\r
.PollingIntervalMS = 0x0A
\r
},
\r
\r
- .
Generic
OUTEndpoint =
\r
+ .
HID_Report
OUTEndpoint =
\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
@@
-236,7
+236,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.GenericHID;
\r
+ Address = (void*)&ConfigurationDescriptor.
HID_
GenericHID;
\r
Size = sizeof(USB_Descriptor_HID_t);
\r
break;
\r
case DTYPE_Report:
\r
Size = sizeof(USB_Descriptor_HID_t);
\r
break;
\r
case DTYPE_Report:
\r