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]
/
Projects
/
TemperatureDataLogger
/
Descriptors.c
diff --git
a/Projects/TemperatureDataLogger/Descriptors.c
b/Projects/TemperatureDataLogger/Descriptors.c
index
e4f5666
..
48778d8
100644
(file)
--- a/
Projects/TemperatureDataLogger/Descriptors.c
+++ b/
Projects/TemperatureDataLogger/Descriptors.c
@@
-124,7
+124,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
- .MSInterface =
\r
+ .MS
_
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
@@
-140,7
+140,7
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.InterfaceStrIndex = NO_DESCRIPTOR
\r
},
\r
\r
.InterfaceStrIndex = NO_DESCRIPTOR
\r
},
\r
\r
- .MSDataInEndpoint =
\r
+ .MS
_
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
@@
-150,7
+150,7
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.PollingIntervalMS = 0x00
\r
},
\r
\r
.PollingIntervalMS = 0x00
\r
},
\r
\r
- .MSDataOutEndpoint =
\r
+ .MS
_
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
@@
-160,7
+160,7
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.PollingIntervalMS = 0x00
\r
},
\r
\r
.PollingIntervalMS = 0x00
\r
},
\r
\r
- .HIDInterface =
\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
@@
-176,7
+176,7
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.InterfaceStrIndex = NO_DESCRIPTOR
\r
},
\r
\r
.InterfaceStrIndex = NO_DESCRIPTOR
\r
},
\r
\r
- .HID
Info
=
\r
+ .HID
_GenericHID
=
\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
@@
-187,7
+187,7
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.HIDReportLength = sizeof(GenericReport)
\r
},
\r
\r
.HIDReportLength = sizeof(GenericReport)
\r
},
\r
\r
- .HID
DataIn
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
@@
-274,7
+274,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.HID
Info
;
\r
+ Address = (void*)&ConfigurationDescriptor.HID
_GenericHID
;
\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