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
/
Keyboard
/
Descriptors.c
diff --git
a/Demos/Device/LowLevel/Keyboard/Descriptors.c
b/Demos/Device/LowLevel/Keyboard/Descriptors.c
index
024547e
..
879b289
100644
(file)
--- a/
Demos/Device/LowLevel/Keyboard/Descriptors.c
+++ b/
Demos/Device/LowLevel/Keyboard/Descriptors.c
@@
-129,7
+129,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
@@
-145,7
+145,7
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.InterfaceStrIndex = NO_DESCRIPTOR
\r
},
\r
\r
.InterfaceStrIndex = NO_DESCRIPTOR
\r
},
\r
\r
- .KeyboardHID =
\r
+ .
HID_
KeyboardHID =
\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
@@
-156,7
+156,7
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.HIDReportLength = sizeof(KeyboardReport)
\r
},
\r
\r
.HIDReportLength = sizeof(KeyboardReport)
\r
},
\r
\r
- .
Keyboard
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
@@
-166,7
+166,7
@@
USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
.PollingIntervalMS = 0x0A
\r
},
\r
\r
.PollingIntervalMS = 0x0A
\r
},
\r
\r
- .
KeyboardLEDs
Endpoint =
\r
+ .
HID_ReportOUT
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
@@
-253,7
+253,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.KeyboardHID;
\r
+ Address = (void*)&ConfigurationDescriptor.
HID_
KeyboardHID;
\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