Standardized the naming scheme given to configuration descriptor sub-elements in...
authorDean Camera <dean@fourwalledcubicle.com>
Mon, 22 Mar 2010 07:12:25 +0000 (07:12 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Mon, 22 Mar 2010 07:12:25 +0000 (07:12 +0000)
Fix errors in the MouseHostWithParser demo from incorrect use of the HID_ALIGN_DATA() macro.

86 files changed:
Bootloaders/CDC/Descriptors.c
Bootloaders/CDC/Descriptors.h
Bootloaders/DFU/Descriptors.c
Bootloaders/DFU/Descriptors.h
Bootloaders/TeensyHID/Descriptors.c
Bootloaders/TeensyHID/Descriptors.h
Demos/Device/ClassDriver/AudioInput/Descriptors.c
Demos/Device/ClassDriver/AudioInput/Descriptors.h
Demos/Device/ClassDriver/AudioOutput/Descriptors.c
Demos/Device/ClassDriver/AudioOutput/Descriptors.h
Demos/Device/ClassDriver/DualVirtualSerial/Descriptors.c
Demos/Device/ClassDriver/DualVirtualSerial/Descriptors.h
Demos/Device/ClassDriver/GenericHID/Descriptors.c
Demos/Device/ClassDriver/GenericHID/Descriptors.h
Demos/Device/ClassDriver/Joystick/Descriptors.c
Demos/Device/ClassDriver/Joystick/Descriptors.h
Demos/Device/ClassDriver/Keyboard/Descriptors.c
Demos/Device/ClassDriver/Keyboard/Descriptors.h
Demos/Device/ClassDriver/KeyboardMouse/Descriptors.c
Demos/Device/ClassDriver/KeyboardMouse/Descriptors.h
Demos/Device/ClassDriver/MIDI/Descriptors.c
Demos/Device/ClassDriver/MIDI/Descriptors.h
Demos/Device/ClassDriver/MassStorage/Descriptors.c
Demos/Device/ClassDriver/MassStorage/Descriptors.h
Demos/Device/ClassDriver/MassStorageKeyboard/Descriptors.c
Demos/Device/ClassDriver/MassStorageKeyboard/Descriptors.h
Demos/Device/ClassDriver/Mouse/Descriptors.c
Demos/Device/ClassDriver/Mouse/Descriptors.h
Demos/Device/ClassDriver/RNDISEthernet/Descriptors.c
Demos/Device/ClassDriver/RNDISEthernet/Descriptors.h
Demos/Device/ClassDriver/VirtualSerial/Descriptors.c
Demos/Device/ClassDriver/VirtualSerial/Descriptors.h
Demos/Device/ClassDriver/VirtualSerialMouse/Descriptors.c
Demos/Device/ClassDriver/VirtualSerialMouse/Descriptors.h
Demos/Device/Incomplete/Sideshow/Descriptors.c
Demos/Device/Incomplete/Sideshow/Descriptors.h
Demos/Device/Incomplete/Sideshow/Lib/SideshowContent.h
Demos/Device/LowLevel/AudioInput/Descriptors.c
Demos/Device/LowLevel/AudioInput/Descriptors.h
Demos/Device/LowLevel/AudioOutput/Descriptors.c
Demos/Device/LowLevel/AudioOutput/Descriptors.h
Demos/Device/LowLevel/DualVirtualSerial/Descriptors.c
Demos/Device/LowLevel/DualVirtualSerial/Descriptors.h
Demos/Device/LowLevel/GenericHID/Descriptors.c
Demos/Device/LowLevel/GenericHID/Descriptors.h
Demos/Device/LowLevel/Joystick/Descriptors.c
Demos/Device/LowLevel/Joystick/Descriptors.h
Demos/Device/LowLevel/Keyboard/Descriptors.c
Demos/Device/LowLevel/Keyboard/Descriptors.h
Demos/Device/LowLevel/KeyboardMouse/Descriptors.c
Demos/Device/LowLevel/KeyboardMouse/Descriptors.h
Demos/Device/LowLevel/MIDI/Descriptors.c
Demos/Device/LowLevel/MIDI/Descriptors.h
Demos/Device/LowLevel/MassStorage/Descriptors.c
Demos/Device/LowLevel/MassStorage/Descriptors.h
Demos/Device/LowLevel/Mouse/Descriptors.c
Demos/Device/LowLevel/Mouse/Descriptors.h
Demos/Device/LowLevel/RNDISEthernet/Descriptors.c
Demos/Device/LowLevel/RNDISEthernet/Descriptors.h
Demos/Device/LowLevel/VirtualSerial/Descriptors.c
Demos/Device/LowLevel/VirtualSerial/Descriptors.h
Demos/DualRole/ClassDriver/MouseHostDevice/Descriptors.c
Demos/DualRole/ClassDriver/MouseHostDevice/Descriptors.h
Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c
LUFA/ManPages/ChangeLog.txt
Projects/AVRISP-MKII/Descriptors.c
Projects/AVRISP-MKII/Descriptors.h
Projects/Benito/Descriptors.c
Projects/Benito/Descriptors.h
Projects/Incomplete/StandaloneProgrammer/Descriptors.c
Projects/Incomplete/StandaloneProgrammer/Descriptors.h
Projects/LEDNotifier/Descriptors.c
Projects/LEDNotifier/Descriptors.h
Projects/Magstripe/Descriptors.c
Projects/Magstripe/Descriptors.h
Projects/TemperatureDataLogger/Descriptors.c
Projects/TemperatureDataLogger/Descriptors.h
Projects/USBtoSerial/Descriptors.c
Projects/USBtoSerial/Descriptors.h
Projects/Webserver/Descriptors.c
Projects/Webserver/Descriptors.h
Projects/XPLAINBridge/AVRISPDescriptors.c
Projects/XPLAINBridge/AVRISPDescriptors.h
Projects/XPLAINBridge/USARTDescriptors.c
Projects/XPLAINBridge/USARTDescriptors.h
Projects/XPLAINBridge/XPLAINBridge.txt

index 38906cf..fdaba83 100644 (file)
@@ -86,7 +86,7 @@ USB_Descriptor_Configuration_t ConfigurationDescriptor =
                        .MaxPowerConsumption    = USB_CONFIG_POWER_MA(100)\r
                },\r
                \r
-       .CCI_Interface = \r
+       .CDC_CCI_Interface = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -134,7 +134,7 @@ USB_Descriptor_Configuration_t ConfigurationDescriptor =
                        .Data                   = {0x00, 0x01}\r
                },      \r
 \r
-       .ManagementEndpoint = \r
+       .CDC_ManagementEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                                                                                 \r
@@ -144,7 +144,7 @@ USB_Descriptor_Configuration_t ConfigurationDescriptor =
                        .PollingIntervalMS      = 0x02\r
                },\r
 \r
-       .DCI_Interface = \r
+       .CDC_DCI_Interface = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -160,7 +160,7 @@ USB_Descriptor_Configuration_t ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .DataOutEndpoint = \r
+       .CDC_DataOutEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                                                                                 \r
@@ -170,7 +170,7 @@ USB_Descriptor_Configuration_t ConfigurationDescriptor =
                        .PollingIntervalMS      = 0x00\r
                },\r
                \r
-       .DataInEndpoint = \r
+       .CDC_DataInEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                                                                                 \r
index ac02ff6..f123477 100644 (file)
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t    Config;\r
-                       USB_Descriptor_Interface_t               CCI_Interface;\r
+                       USB_Descriptor_Interface_t               CDC_CCI_Interface;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_IntHeader;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_CallManagement;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(1)             CDC_Functional_AbstractControlManagement;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_Union;\r
-                       USB_Descriptor_Endpoint_t                ManagementEndpoint;\r
-                       USB_Descriptor_Interface_t               DCI_Interface;\r
-                       USB_Descriptor_Endpoint_t                DataOutEndpoint;\r
-                       USB_Descriptor_Endpoint_t                DataInEndpoint;\r
+                       USB_Descriptor_Endpoint_t                CDC_ManagementEndpoint;\r
+                       USB_Descriptor_Interface_t               CDC_DCI_Interface;\r
+                       USB_Descriptor_Endpoint_t                CDC_DataOutEndpoint;\r
+                       USB_Descriptor_Endpoint_t                CDC_DataInEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
 \r
        /* Function Prototypes: */\r
index f20fbeb..510a29f 100644 (file)
@@ -86,7 +86,7 @@ USB_Descriptor_Configuration_t ConfigurationDescriptor =
                        .MaxPowerConsumption      = USB_CONFIG_POWER_MA(100)\r
                },\r
                \r
-       .DFUInterface = \r
+       .DFU_Interface = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -102,7 +102,7 @@ USB_Descriptor_Configuration_t ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
                \r
-       .DFUFunctional = \r
+       .DFU_Functional = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_DFU_Functional_Descriptor_t), .Type = DTYPE_DFUFunctional},\r
                        \r
index 32d5828..961e480 100644 (file)
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t Config;\r
-                       USB_Descriptor_Interface_t            DFUInterface;\r
-                       USB_DFU_Functional_Descriptor_t       DFUFunctional;\r
+                       USB_Descriptor_Interface_t            DFU_Interface;\r
+                       USB_DFU_Functional_Descriptor_t       DFU_Functional;\r
                } USB_Descriptor_Configuration_t;\r
                \r
        /* Function Prototypes: */\r
index 596ed6e..2832ec3 100644 (file)
@@ -106,7 +106,7 @@ USB_Descriptor_Configuration_t ConfigurationDescriptor =
                        .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
@@ -122,7 +122,7 @@ USB_Descriptor_Configuration_t ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .HIDDescriptor = \r
+       .HID_VendorHID = \r
                {  \r
                        .Header                 = {.Size = sizeof(USB_Descriptor_HID_t), .Type = DTYPE_HID},\r
                        \r
@@ -133,7 +133,7 @@ USB_Descriptor_Configuration_t ConfigurationDescriptor =
                        .HIDReportLength        = sizeof(HIDReport)\r
                },\r
                \r
-       .HIDEndpoint = \r
+       .HID_ReportINEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
 \r
@@ -168,7 +168,7 @@ uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, const uint8_t wIndex,
                        Size    = sizeof(USB_Descriptor_Configuration_t);\r
                        break;\r
                case DTYPE_HID:\r
-                       Address = (void*)&ConfigurationDescriptor.HIDDescriptor;\r
+                       Address = (void*)&ConfigurationDescriptor.HID_VendorHID;\r
                        Size    = sizeof(USB_Descriptor_HID_t);\r
                        break;\r
                case DTYPE_Report:\r
index 233c5ab..0ea7f39 100644 (file)
@@ -66,9 +66,9 @@
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t Config;\r
-                       USB_Descriptor_Interface_t            Interface;\r
-                       USB_Descriptor_HID_t                  HIDDescriptor;\r
-               USB_Descriptor_Endpoint_t             HIDEndpoint;\r
+                       USB_Descriptor_Interface_t            HID_Interface;\r
+                       USB_Descriptor_HID_t                  HID_VendorHID;\r
+               USB_Descriptor_Endpoint_t             HID_ReportINEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
                                        \r
        /* Macros: */\r
index 42da1a8..784ce79 100644 (file)
@@ -86,7 +86,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .MaxPowerConsumption      = USB_CONFIG_POWER_MA(100)\r
                },\r
 \r
-       .AudioControlInterface = \r
+       .Audio_ControlInterface = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -102,7 +102,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex        = NO_DESCRIPTOR\r
                },\r
 \r
-       .AudioControlInterface_SPC = \r
+       .Audio_ControlInterface_SPC = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_Interface_AC_t), .Type = DTYPE_AudioInterface},\r
                        .Subtype                  = DSUBTYPE_Header,\r
@@ -116,7 +116,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceNumbers         = {1},\r
                },\r
 \r
-       .InputTerminal = \r
+       .Audio_InputTerminal = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_InputTerminal_t), .Type = DTYPE_AudioInterface},\r
                        .Subtype                  = DSUBTYPE_InputTerminal,\r
@@ -132,7 +132,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .TerminalStrIndex         = NO_DESCRIPTOR\r
                },\r
 \r
-       .OutputTerminal = \r
+       .Audio_OutputTerminal = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_OutputTerminal_t), .Type = DTYPE_AudioInterface},\r
                        .Subtype                  = DSUBTYPE_OutputTerminal,\r
@@ -146,7 +146,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .TerminalStrIndex         = NO_DESCRIPTOR\r
                },\r
 \r
-       .AudioStreamInterface_Alt0 = \r
+       .Audio_StreamInterface_Alt0 = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -162,7 +162,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex        = NO_DESCRIPTOR\r
                },\r
 \r
-       .AudioStreamInterface_Alt1 = \r
+       .Audio_StreamInterface_Alt1 = \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
-       .AudioStreamInterface_SPC = \r
+       .Audio_StreamInterface_SPC = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_Interface_AS_t), .Type = DTYPE_AudioInterface},\r
                        .Subtype                  = DSUBTYPE_General,\r
@@ -189,7 +189,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .AudioFormat              = 0x0001\r
                },\r
 \r
-       .AudioFormat = \r
+       .Audio_AudioFormat = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_Format_t), .Type = DTYPE_AudioInterface},\r
                        .Subtype                  = DSUBTYPE_Format,\r
@@ -204,7 +204,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .SampleFrequencies        = {AUDIO_SAMPLE_FREQ(AUDIO_SAMPLE_FREQUENCY)}\r
                },\r
        \r
-       .AudioEndpoint = \r
+       .Audio_StreamEndpoint = \r
                {\r
                        .Endpoint = \r
                                {\r
@@ -220,7 +220,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .SyncEndpointNumber       = 0\r
                },\r
                \r
-       .AudioEndpoint_SPC = \r
+       .Audio_StreamEndpoint_SPC = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_StreamEndpoint_Spc_t), .Type = DTYPE_AudioEndpoint},\r
                        .Subtype                  = DSUBTYPE_General,\r
index 892b2ec..9bc94f3 100644 (file)
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t Config;\r
-                       USB_Descriptor_Interface_t            AudioControlInterface;\r
-                       USB_Audio_Interface_AC_t              AudioControlInterface_SPC;\r
-                       USB_Audio_InputTerminal_t             InputTerminal;\r
-                       USB_Audio_OutputTerminal_t            OutputTerminal;\r
-                       USB_Descriptor_Interface_t            AudioStreamInterface_Alt0;\r
-                       USB_Descriptor_Interface_t            AudioStreamInterface_Alt1;\r
-                       USB_Audio_Interface_AS_t              AudioStreamInterface_SPC;\r
-                       USB_Audio_Format_t                    AudioFormat;\r
-                       USB_Audio_StreamEndpoint_Std_t        AudioEndpoint;\r
-                       USB_Audio_StreamEndpoint_Spc_t        AudioEndpoint_SPC;\r
+                       USB_Descriptor_Interface_t            Audio_ControlInterface;\r
+                       USB_Audio_Interface_AC_t              Audio_ControlInterface_SPC;\r
+                       USB_Audio_InputTerminal_t             Audio_InputTerminal;\r
+                       USB_Audio_OutputTerminal_t            Audio_OutputTerminal;\r
+                       USB_Descriptor_Interface_t            Audio_StreamInterface_Alt0;\r
+                       USB_Descriptor_Interface_t            Audio_StreamInterface_Alt1;\r
+                       USB_Audio_Interface_AS_t              Audio_StreamInterface_SPC;\r
+                       USB_Audio_Format_t                    Audio_AudioFormat;\r
+                       USB_Audio_StreamEndpoint_Std_t        Audio_StreamEndpoint;\r
+                       USB_Audio_StreamEndpoint_Spc_t        Audio_StreamEndpoint_SPC;\r
                } USB_Descriptor_Configuration_t;\r
 \r
        /* Function Prototypes: */\r
index af6c982..3f62031 100644 (file)
@@ -86,7 +86,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .MaxPowerConsumption      = USB_CONFIG_POWER_MA(100)\r
                },\r
                \r
-       .AudioControlInterface = \r
+       .Audio_ControlInterface = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -102,7 +102,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex        = NO_DESCRIPTOR\r
                },\r
        \r
-       .AudioControlInterface_SPC = \r
+       .Audio_ControlInterface_SPC = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_Interface_AC_t), .Type = DTYPE_AudioInterface},\r
                        .Subtype                  = DSUBTYPE_Header,\r
@@ -116,7 +116,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceNumbers         = {1},\r
                },\r
 \r
-       .InputTerminal = \r
+       .Audio_InputTerminal = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_InputTerminal_t), .Type = DTYPE_AudioInterface},\r
                        .Subtype                  = DSUBTYPE_InputTerminal,\r
@@ -132,7 +132,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .TerminalStrIndex         = NO_DESCRIPTOR\r
                },\r
 \r
-       .OutputTerminal = \r
+       .Audio_OutputTerminal = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_OutputTerminal_t), .Type = DTYPE_AudioInterface},\r
                        .Subtype                  = DSUBTYPE_OutputTerminal,\r
@@ -146,7 +146,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .TerminalStrIndex         = NO_DESCRIPTOR\r
                },\r
 \r
-       .AudioStreamInterface_Alt0 = \r
+       .Audio_StreamInterface_Alt0 = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -162,7 +162,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex        = NO_DESCRIPTOR\r
                },\r
 \r
-       .AudioStreamInterface_Alt1 = \r
+       .Audio_StreamInterface_Alt1 = \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
-       .AudioStreamInterface_SPC = \r
+       .Audio_StreamInterface_SPC = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_Interface_AS_t), .Type = DTYPE_AudioInterface},\r
                        .Subtype                  = DSUBTYPE_General,\r
@@ -189,7 +189,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .AudioFormat              = 0x0001\r
                },\r
                \r
-       .AudioFormat = \r
+       .Audio_AudioFormat = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_Format_t), .Type = DTYPE_AudioInterface},\r
                        .Subtype                  = DSUBTYPE_Format,\r
@@ -204,7 +204,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .SampleFrequencies        = {AUDIO_SAMPLE_FREQ(AUDIO_SAMPLE_FREQUENCY)}\r
                },\r
        \r
-       .AudioEndpoint = \r
+       .Audio_StreamEndpoint = \r
                {\r
                        .Endpoint = \r
                                {\r
@@ -220,7 +220,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .SyncEndpointNumber       = 0\r
                },\r
                \r
-       .AudioEndpoint_SPC = \r
+       .Audio_StreamEndpoint_SPC = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_StreamEndpoint_Spc_t), .Type = DTYPE_AudioEndpoint},\r
                        .Subtype                  = DSUBTYPE_General,\r
index 110c8bc..34dd481 100644 (file)
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t Config;\r
-                       USB_Descriptor_Interface_t            AudioControlInterface;\r
-                       USB_Audio_Interface_AC_t              AudioControlInterface_SPC;\r
-                       USB_Audio_InputTerminal_t             InputTerminal;\r
-                       USB_Audio_OutputTerminal_t            OutputTerminal;\r
-                       USB_Descriptor_Interface_t            AudioStreamInterface_Alt0;\r
-                       USB_Descriptor_Interface_t            AudioStreamInterface_Alt1;\r
-                       USB_Audio_Interface_AS_t              AudioStreamInterface_SPC;\r
-                       USB_Audio_Format_t                    AudioFormat;\r
-                       USB_Audio_StreamEndpoint_Std_t        AudioEndpoint;\r
-                       USB_Audio_StreamEndpoint_Spc_t        AudioEndpoint_SPC;\r
+                       USB_Descriptor_Interface_t            Audio_ControlInterface;\r
+                       USB_Audio_Interface_AC_t              Audio_ControlInterface_SPC;\r
+                       USB_Audio_InputTerminal_t             Audio_InputTerminal;\r
+                       USB_Audio_OutputTerminal_t            Audio_OutputTerminal;\r
+                       USB_Descriptor_Interface_t            Audio_StreamInterface_Alt0;\r
+                       USB_Descriptor_Interface_t            Audio_StreamInterface_Alt1;\r
+                       USB_Audio_Interface_AS_t              Audio_StreamInterface_SPC;\r
+                       USB_Audio_Format_t                    Audio_AudioFormat;\r
+                       USB_Audio_StreamEndpoint_Std_t        Audio_StreamEndpoint;\r
+                       USB_Audio_StreamEndpoint_Spc_t        Audio_StreamEndpoint_SPC;\r
                } USB_Descriptor_Configuration_t;\r
                \r
        /* Function Prototypes: */\r
index 107d9bd..b9bc4b1 100644 (file)
@@ -98,7 +98,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .MaxPowerConsumption    = USB_CONFIG_POWER_MA(100)\r
                },\r
                \r
-       .IAD1 = \r
+       .CDC1_IAD = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Interface_Association_t), .Type = DTYPE_InterfaceAssociation},\r
 \r
@@ -206,7 +206,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .PollingIntervalMS      = 0x00\r
                },\r
 \r
-       .IAD2 = \r
+       .CDC2_IAD = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Interface_Association_t), .Type = DTYPE_InterfaceAssociation},\r
 \r
index 2add46a..532c266 100644 (file)
@@ -75,7 +75,7 @@
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t    Config;\r
-                       USB_Descriptor_Interface_Association_t   IAD1;\r
+                       USB_Descriptor_Interface_Association_t   CDC1_IAD;\r
                        USB_Descriptor_Interface_t               CDC1_CCI_Interface;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC1_Functional_IntHeader;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC1_Functional_CallManagement;\r
@@ -85,7 +85,7 @@
                        USB_Descriptor_Interface_t               CDC1_DCI_Interface;\r
                        USB_Descriptor_Endpoint_t                CDC1_DataOutEndpoint;\r
                        USB_Descriptor_Endpoint_t                CDC1_DataInEndpoint;\r
-                       USB_Descriptor_Interface_Association_t   IAD2;\r
+                       USB_Descriptor_Interface_Association_t   CDC2_IAD;\r
                        USB_Descriptor_Interface_t               CDC2_CCI_Interface;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC2_Functional_IntHeader;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC2_Functional_CallManagement;\r
index 3cc9817..953edfe 100644 (file)
@@ -112,7 +112,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .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
@@ -128,7 +128,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .GenericHID = \r
+       .HID_GenericHID = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_HID_Descriptor_t), .Type = DTYPE_HID},\r
                                                                         \r
@@ -139,7 +139,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .HIDReportLength        = sizeof(GenericReport)\r
                },\r
 \r
-       .GenericINEndpoint = \r
+       .HID_ReportINEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                                                                                 \r
@@ -226,7 +226,7 @@ uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, const uint8_t wIndex,
                        \r
                        break;\r
                case DTYPE_HID: \r
-                       Address = (void*)&ConfigurationDescriptor.GenericHID;\r
+                       Address = (void*)&ConfigurationDescriptor.HID_GenericHID;\r
                        Size    = sizeof(USB_HID_Descriptor_t);\r
                        break;\r
                case DTYPE_Report: \r
index efe1393..26985f1 100644 (file)
@@ -50,9 +50,9 @@
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t Config;\r
-                       USB_Descriptor_Interface_t            Interface;\r
-                       USB_HID_Descriptor_t                  GenericHID;\r
-               USB_Descriptor_Endpoint_t             GenericINEndpoint;\r
+                       USB_Descriptor_Interface_t            HID_Interface;\r
+                       USB_HID_Descriptor_t                  HID_GenericHID;\r
+               USB_Descriptor_Endpoint_t             HID_ReportINEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
 \r
        /* Macros: */\r
index c8a6c30..64d72ad 100644 (file)
@@ -122,7 +122,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .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
@@ -138,7 +138,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .JoystickHID = \r
+       .HID_JoystickHID = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_HID_Descriptor_t), .Type = DTYPE_HID},\r
                        \r
@@ -149,7 +149,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .HIDReportLength        = sizeof(JoystickReport)\r
                },\r
 \r
-       .JoystickEndpoint = \r
+       .HID_ReportINEndpoint = \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
-                       Address = (void*)&ConfigurationDescriptor.JoystickHID;\r
+                       Address = (void*)&ConfigurationDescriptor.HID_JoystickHID;\r
                        Size    = sizeof(USB_HID_Descriptor_t);\r
                        break;\r
                case DTYPE_Report: \r
index b2edc85..1777a56 100644 (file)
@@ -50,9 +50,9 @@
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t Config;\r
-                       USB_Descriptor_Interface_t            Interface;\r
-                       USB_HID_Descriptor_t                  JoystickHID;\r
-               USB_Descriptor_Endpoint_t             JoystickEndpoint;\r
+                       USB_Descriptor_Interface_t            HID_Interface;\r
+                       USB_HID_Descriptor_t                  HID_JoystickHID;\r
+               USB_Descriptor_Endpoint_t             HID_ReportINEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
 \r
        /* Macros: */\r
index 5890cb4..7e12c65 100644 (file)
@@ -129,7 +129,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .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
@@ -145,7 +145,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .KeyboardHID = \r
+       .HID_KeyboardHID = \r
                {  \r
                        .Header                 = {.Size = sizeof(USB_HID_Descriptor_t), .Type = DTYPE_HID},\r
                        \r
@@ -156,7 +156,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .HIDReportLength        = sizeof(KeyboardReport)\r
                },\r
                \r
-       .KeyboardEndpoint = \r
+       .HID_ReportINEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
 \r
@@ -243,7 +243,7 @@ uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, const uint8_t wIndex,
                        \r
                        break;\r
                case DTYPE_HID: \r
-                       Address = (void*)&ConfigurationDescriptor.KeyboardHID;\r
+                       Address = (void*)&ConfigurationDescriptor.HID_KeyboardHID;\r
                        Size    = sizeof(USB_HID_Descriptor_t);\r
                        break;\r
                case DTYPE_Report: \r
index 5f2a2c0..6a147c6 100644 (file)
@@ -51,9 +51,9 @@
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t Config;\r
-                       USB_Descriptor_Interface_t            Interface;\r
-                       USB_HID_Descriptor_t                  KeyboardHID;\r
-               USB_Descriptor_Endpoint_t             KeyboardEndpoint;\r
+                       USB_Descriptor_Interface_t            HID_Interface;\r
+                       USB_HID_Descriptor_t                  HID_KeyboardHID;\r
+               USB_Descriptor_Endpoint_t             HID_ReportINEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
                                        \r
        /* Macros: */\r
index 69eaf7c..2818b6e 100644 (file)
@@ -162,7 +162,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .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
@@ -178,7 +178,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .KeyboardHID = \r
+       .HID1_KeyboardHID = \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
-       .KeyboardInEndpoint = \r
+       .HID1_ReportINEndpoint = \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
-       .MouseInterface = \r
+       .HID2_MouseInterface = \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
-       .MouseHID = \r
+       .HID2_MouseHID = \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
-       .MouseInEndpoint = \r
+       .HID2_ReportINEndpoint = \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
-                               Address = (void*)&ConfigurationDescriptor.KeyboardHID;\r
+                               Address = (void*)&ConfigurationDescriptor.HID1_KeyboardHID;\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
index 38bf13a..517b3a0 100644 (file)
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t Config;\r
-                       USB_Descriptor_Interface_t            KeyboardInterface;\r
-                       USB_HID_Descriptor_t                  KeyboardHID;\r
-               USB_Descriptor_Endpoint_t             KeyboardInEndpoint;\r
-                       USB_Descriptor_Interface_t            MouseInterface;\r
-                       USB_HID_Descriptor_t                  MouseHID;\r
-               USB_Descriptor_Endpoint_t             MouseInEndpoint;\r
+                       USB_Descriptor_Interface_t            HID1_KeyboardInterface;\r
+                       USB_HID_Descriptor_t                  HID1_KeyboardHID;\r
+               USB_Descriptor_Endpoint_t             HID1_ReportINEndpoint;\r
+                       USB_Descriptor_Interface_t            HID2_MouseInterface;\r
+                       USB_HID_Descriptor_t                  HID2_MouseHID;\r
+               USB_Descriptor_Endpoint_t             HID2_ReportINEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
                                        \r
        /* Macros: */\r
index 2c0bb78..4b9e03b 100644 (file)
@@ -86,7 +86,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .MaxPowerConsumption      = USB_CONFIG_POWER_MA(100)\r
                },\r
                \r
-       .AudioControlInterface = \r
+       .Audio_ControlInterface = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -102,7 +102,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex        = NO_DESCRIPTOR\r
                },\r
        \r
-       .AudioControlInterface_SPC = \r
+       .Audio_ControlInterface_SPC = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_Interface_AC_t), .Type = DTYPE_AudioInterface},\r
                        .Subtype                  = DSUBTYPE_Header,\r
@@ -114,7 +114,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceNumbers         = {1},\r
                },\r
 \r
-       .AudioStreamInterface = \r
+       .Audio_StreamInterface = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -130,14 +130,15 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex        = NO_DESCRIPTOR\r
                },\r
                \r
-       .AudioStreamInterface_SPC = \r
+       .Audio_StreamInterface_SPC = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_MIDI_AudioInterface_AS_t), .Type = DTYPE_AudioInterface},\r
                        .Subtype                  = DSUBTYPE_General,\r
 \r
                        .AudioSpecification       = VERSION_BCD(01.00),\r
                        \r
-                       .TotalLength              = (sizeof(USB_Descriptor_Configuration_t) - offsetof(USB_Descriptor_Configuration_t, AudioStreamInterface_SPC))\r
+                       .TotalLength              = (sizeof(USB_Descriptor_Configuration_t) -\r
+                                                    offsetof(USB_Descriptor_Configuration_t, Audio_StreamInterface_SPC))\r
                },\r
 \r
        .MIDI_In_Jack_Emb = \r
index 6cef842..ffd261e 100644 (file)
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t Config;\r
-                       USB_Descriptor_Interface_t            AudioControlInterface;\r
-                       USB_Audio_Interface_AC_t              AudioControlInterface_SPC;\r
-                       USB_Descriptor_Interface_t            AudioStreamInterface;\r
-                       USB_MIDI_AudioInterface_AS_t          AudioStreamInterface_SPC;\r
+                       USB_Descriptor_Interface_t            Audio_ControlInterface;\r
+                       USB_Audio_Interface_AC_t              Audio_ControlInterface_SPC;\r
+                       USB_Descriptor_Interface_t            Audio_StreamInterface;\r
+                       USB_MIDI_AudioInterface_AS_t          Audio_StreamInterface_SPC;\r
                        USB_MIDI_In_Jack_t                    MIDI_In_Jack_Emb;\r
                        USB_MIDI_In_Jack_t                    MIDI_In_Jack_Ext;\r
                        USB_MIDI_Out_Jack_t                   MIDI_Out_Jack_Emb;\r
index 40ce620..856d408 100644 (file)
@@ -98,7 +98,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .MaxPowerConsumption    = USB_CONFIG_POWER_MA(100)\r
                },\r
                \r
-       .Interface = \r
+       .MS_Interface = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -114,7 +114,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .DataInEndpoint = \r
+       .MS_DataInEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
 \r
@@ -124,7 +124,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .PollingIntervalMS      = 0x00\r
                },\r
 \r
-       .DataOutEndpoint = \r
+       .MS_DataOutEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
 \r
index dcaadda..e249fc4 100644 (file)
@@ -60,9 +60,9 @@
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t Config;\r
-                       USB_Descriptor_Interface_t            Interface;\r
-                       USB_Descriptor_Endpoint_t             DataInEndpoint;\r
-                       USB_Descriptor_Endpoint_t             DataOutEndpoint;\r
+                       USB_Descriptor_Interface_t            MS_Interface;\r
+                       USB_Descriptor_Endpoint_t             MS_DataInEndpoint;\r
+                       USB_Descriptor_Endpoint_t             MS_DataOutEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
                \r
        /* Function Prototypes: */\r
index e8523f4..4f7684c 100644 (file)
@@ -141,7 +141,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .MaxPowerConsumption    = USB_CONFIG_POWER_MA(100)\r
                },\r
                \r
-       .MassStorageInterface = \r
+       .MS_Interface = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -157,7 +157,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .MassStorageDataInEndpoint = \r
+       .MS_DataInEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
 \r
@@ -167,7 +167,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .PollingIntervalMS      = 0x00\r
                },\r
 \r
-       .MassStorageDataOutEndpoint = \r
+       .MS_DataOutEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
 \r
@@ -177,7 +177,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .PollingIntervalMS      = 0x00\r
                },\r
 \r
-       .KeyboardInterface = \r
+       .HID_KeyboardInterface = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -193,7 +193,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .KeyboardHID = \r
+       .HID_KeyboardHID = \r
                {  \r
                        .Header                 = {.Size = sizeof(USB_HID_Descriptor_t), .Type = DTYPE_HID},\r
                        \r
@@ -204,7 +204,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .HIDReportLength        = sizeof(KeyboardReport)\r
                },\r
                \r
-       .KeyboardEndpoint = \r
+       .HID_ReportINEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
 \r
@@ -291,7 +291,7 @@ uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, const uint8_t wIndex,
                        \r
                        break;\r
                case DTYPE_HID:\r
-                       Address = (void*)&ConfigurationDescriptor.KeyboardHID;\r
+                       Address = (void*)&ConfigurationDescriptor.HID_KeyboardHID;\r
                        Size    = sizeof(USB_HID_Descriptor_t);\r
                        break;\r
                case DTYPE_Report:\r
index c29d908..13fb64c 100644 (file)
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t Config;\r
-                       USB_Descriptor_Interface_t            MassStorageInterface;\r
-                       USB_Descriptor_Endpoint_t             MassStorageDataInEndpoint;\r
-                       USB_Descriptor_Endpoint_t             MassStorageDataOutEndpoint;\r
-                       USB_Descriptor_Interface_t            KeyboardInterface;\r
-                       USB_HID_Descriptor_t                  KeyboardHID;\r
-               USB_Descriptor_Endpoint_t             KeyboardEndpoint;\r
+                       USB_Descriptor_Interface_t            MS_Interface;\r
+                       USB_Descriptor_Endpoint_t             MS_DataInEndpoint;\r
+                       USB_Descriptor_Endpoint_t             MS_DataOutEndpoint;\r
+                       USB_Descriptor_Interface_t            HID_KeyboardInterface;\r
+                       USB_HID_Descriptor_t                  HID_KeyboardHID;\r
+               USB_Descriptor_Endpoint_t             HID_ReportINEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
                \r
        /* Function Prototypes: */\r
index c6aeb2a..7a5fc34 100644 (file)
@@ -122,7 +122,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .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
@@ -138,7 +138,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .MouseHID = \r
+       .HID_MouseHID = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_HID_Descriptor_t), .Type = DTYPE_HID},\r
 \r
@@ -149,7 +149,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .HIDReportLength        = sizeof(MouseReport)\r
                },\r
 \r
-       .MouseEndpoint = \r
+       .HID_ReportINEndpoint = \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
-                       Address = (void*)&ConfigurationDescriptor.MouseHID;\r
+                       Address = (void*)&ConfigurationDescriptor.HID_MouseHID;\r
                        Size    = sizeof(USB_HID_Descriptor_t);\r
                        break;\r
                case DTYPE_Report: \r
index aa291f3..f5364ce 100644 (file)
@@ -50,9 +50,9 @@
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t Config;\r
-                       USB_Descriptor_Interface_t            Interface;\r
-                       USB_HID_Descriptor_t                  MouseHID;\r
-               USB_Descriptor_Endpoint_t             MouseEndpoint;\r
+                       USB_Descriptor_Interface_t            HID_Interface;\r
+                       USB_HID_Descriptor_t                  HID_MouseHID;\r
+               USB_Descriptor_Endpoint_t             HID_ReportINEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
                                        \r
        /* Macros: */\r
index 09b5261..5d5400d 100644 (file)
@@ -86,7 +86,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .MaxPowerConsumption    = USB_CONFIG_POWER_MA(100)\r
                },\r
                \r
-       .CCI_Interface = \r
+       .CDC_CCI_Interface = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -134,7 +134,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .Data                   = {0x00, 0x01}\r
                },\r
 \r
-       .ManagementEndpoint = \r
+       .CDC_ManagementEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                        \r
@@ -144,7 +144,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .PollingIntervalMS      = 0x02\r
                },\r
 \r
-       .DCI_Interface = \r
+       .CDC_DCI_Interface = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -160,7 +160,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .DataOutEndpoint = \r
+       .RNDIS_DataOutEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                         \r
@@ -170,7 +170,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .PollingIntervalMS      = 0x00\r
                },\r
                \r
-       .DataInEndpoint = \r
+       .RNDIS_DataInEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                        \r
index b43aab7..a5e3517 100644 (file)
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t    Config;\r
-                       USB_Descriptor_Interface_t               CCI_Interface;\r
+                       USB_Descriptor_Interface_t               CDC_CCI_Interface;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_Header;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_CallManagement;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(1)             CDC_Functional_AbstractControlManagement;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_Union;\r
-                       USB_Descriptor_Endpoint_t                ManagementEndpoint;\r
-                       USB_Descriptor_Interface_t               DCI_Interface;\r
-                       USB_Descriptor_Endpoint_t                DataOutEndpoint;\r
-                       USB_Descriptor_Endpoint_t                DataInEndpoint;\r
+                       USB_Descriptor_Endpoint_t                CDC_ManagementEndpoint;\r
+                       USB_Descriptor_Interface_t               CDC_DCI_Interface;\r
+                       USB_Descriptor_Endpoint_t                RNDIS_DataOutEndpoint;\r
+                       USB_Descriptor_Endpoint_t                RNDIS_DataInEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
 \r
        /* Function Prototypes: */\r
index 07380cb..4d513cc 100644 (file)
@@ -98,7 +98,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .MaxPowerConsumption    = USB_CONFIG_POWER_MA(100)\r
                },\r
                \r
-       .CCI_Interface = \r
+       .CDC_CCI_Interface = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -146,7 +146,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .Data                   = {0x00, 0x01}\r
                },\r
 \r
-       .ManagementEndpoint = \r
+       .CDC_ManagementEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                        \r
@@ -156,7 +156,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .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
@@ -172,7 +172,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .DataOutEndpoint = \r
+       .CDC_DataOutEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                        \r
@@ -182,7 +182,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .PollingIntervalMS      = 0x00\r
                },\r
                \r
-       .DataInEndpoint = \r
+       .CDC_DataInEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                        \r
index 2141812..2c56fa3 100644 (file)
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t    Config;\r
-                       USB_Descriptor_Interface_t               CCI_Interface;\r
+                       USB_Descriptor_Interface_t               CDC_CCI_Interface;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_IntHeader;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_CallManagement;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(1)             CDC_Functional_AbstractControlManagement;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_Union;\r
-                       USB_Descriptor_Endpoint_t                ManagementEndpoint;\r
-                       USB_Descriptor_Interface_t               DCI_Interface;\r
-                       USB_Descriptor_Endpoint_t                DataOutEndpoint;\r
-                       USB_Descriptor_Endpoint_t                DataInEndpoint;\r
+                       USB_Descriptor_Endpoint_t                CDC_ManagementEndpoint;\r
+                       USB_Descriptor_Interface_t               CDC_DCI_Interface;\r
+                       USB_Descriptor_Endpoint_t                CDC_DataOutEndpoint;\r
+                       USB_Descriptor_Endpoint_t                CDC_DataInEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
 \r
        /* Function Prototypes: */\r
index 8bb8a1e..c55aa0c 100644 (file)
@@ -148,7 +148,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .IADStrIndex            = NO_DESCRIPTOR\r
                },\r
                \r
-       .CCI_Interface = \r
+       .CDC_CCI_Interface = \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
-       .ManagementEndpoint = \r
+       .CDC_ManagementEndpoint = \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
-       .DCI_Interface = \r
+       .CDC_DCI_Interface = \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
-       .DataOutEndpoint = \r
+       .CDC_DataOutEndpoint = \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
-       .DataInEndpoint = \r
+       .CDC_DataInEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                        \r
@@ -242,7 +242,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .PollingIntervalMS      = 0x00\r
                },\r
 \r
-       .InterfaceHID = \r
+       .HID_Interface = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -258,7 +258,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .MouseHID = \r
+       .HID_MouseHID = \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
-       .MouseEndpoint = \r
+       .HID_ReportINEndpoint = \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
-                       Address = (void*)&ConfigurationDescriptor.MouseHID;\r
+                       Address = (void*)&ConfigurationDescriptor.HID_MouseHID;\r
                        Size    = sizeof(USB_HID_Descriptor_t);\r
                        break;\r
                case DTYPE_Report: \r
index cab5208..c754dbe 100644 (file)
                {\r
                        USB_Descriptor_Configuration_Header_t    Config;\r
                        USB_Descriptor_Interface_Association_t   CDC_IAD;\r
-                       USB_Descriptor_Interface_t               CCI_Interface;\r
+                       USB_Descriptor_Interface_t               CDC_CCI_Interface;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_IntHeader;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_CallManagement;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(1)             CDC_Functional_AbstractControlManagement;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_Union;\r
-                       USB_Descriptor_Endpoint_t                ManagementEndpoint;\r
-                       USB_Descriptor_Interface_t               DCI_Interface;\r
-                       USB_Descriptor_Endpoint_t                DataOutEndpoint;\r
-                       USB_Descriptor_Endpoint_t                DataInEndpoint;\r
-                       USB_Descriptor_Interface_t               InterfaceHID;\r
-                       USB_HID_Descriptor_t                     MouseHID;\r
-               USB_Descriptor_Endpoint_t                MouseEndpoint;\r
+                       USB_Descriptor_Endpoint_t                CDC_ManagementEndpoint;\r
+                       USB_Descriptor_Interface_t               CDC_DCI_Interface;\r
+                       USB_Descriptor_Endpoint_t                CDC_DataOutEndpoint;\r
+                       USB_Descriptor_Endpoint_t                CDC_DataInEndpoint;\r
+                       USB_Descriptor_Interface_t               HID_Interface;\r
+                       USB_HID_Descriptor_t                     HID_MouseHID;\r
+               USB_Descriptor_Endpoint_t                HID_ReportINEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
 \r
        /* Function Prototypes: */\r
index f04b2f6..8f36cae 100644 (file)
@@ -54,7 +54,7 @@ USB_Descriptor_Device_t PROGMEM DeviceDescriptor =
        \r
 USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =\r
 {\r
-       Config:\r
+       .Config =\r
                {\r
                        Header:                 {Size: sizeof(USB_Descriptor_Configuration_Header_t), Type: DTYPE_Configuration},\r
 \r
@@ -69,7 +69,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        MaxPowerConsumption:    USB_CONFIG_POWER_MA(100)\r
                },\r
                \r
-       Interface:\r
+       .SSHOW_Interface =\r
                {\r
                        Header:                 {Size: sizeof(USB_Descriptor_Interface_t), Type: DTYPE_Interface},\r
 \r
@@ -85,7 +85,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        InterfaceStrIndex:      NO_DESCRIPTOR\r
                },\r
 \r
-       DataInEndpoint:\r
+       .SSHOW_DataInEndpoint =\r
                {\r
                        Header:                 {Size: sizeof(USB_Descriptor_Endpoint_t), Type: DTYPE_Endpoint},\r
 \r
@@ -95,7 +95,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        PollingIntervalMS:      0x00\r
                },\r
 \r
-       DataOutEndpoint:\r
+       .SSHOW_DataOutEndpoint =\r
                {\r
                        Header:                 {Size: sizeof(USB_Descriptor_Endpoint_t), Type: DTYPE_Endpoint},\r
 \r
index 409f0c8..564b44c 100644 (file)
@@ -47,9 +47,9 @@
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t Config;\r
-                       USB_Descriptor_Interface_t            Interface;\r
-                       USB_Descriptor_Endpoint_t             DataInEndpoint;\r
-                       USB_Descriptor_Endpoint_t             DataOutEndpoint;\r
+                       USB_Descriptor_Interface_t            SSHOW_Interface;\r
+                       USB_Descriptor_Endpoint_t             SSHOW_DataInEndpoint;\r
+                       USB_Descriptor_Endpoint_t             SSHOW_DataOutEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
                \r
                typedef struct\r
index ec5afac..b34567f 100644 (file)
@@ -35,6 +35,7 @@
                #include <avr/io.h>\r
                #include <stdbool.h>\r
                #include <string.h>\r
+               #include <stdio.h>\r
 \r
                #include "SideshowCommon.h"\r
                #include "SideshowApplications.h"\r
index 3c65dc2..b9362e1 100644 (file)
@@ -86,7 +86,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .MaxPowerConsumption      = USB_CONFIG_POWER_MA(100)\r
                },\r
                \r
-       .AudioControlInterface = \r
+       .Audio_ControlInterface = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -102,7 +102,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex        = NO_DESCRIPTOR\r
                },\r
        \r
-       .AudioControlInterface_SPC = \r
+       .Audio_ControlInterface_SPC = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_Interface_AC_t), .Type = DTYPE_AudioInterface},\r
                        .Subtype                  = DSUBTYPE_Header,\r
@@ -116,7 +116,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceNumbers         = {1},\r
                },\r
 \r
-       .InputTerminal = \r
+       .Audio_InputTerminal = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_InputTerminal_t), .Type = DTYPE_AudioInterface},\r
                        .Subtype                  = DSUBTYPE_InputTerminal,\r
@@ -132,7 +132,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .TerminalStrIndex         = NO_DESCRIPTOR\r
                },\r
 \r
-       .OutputTerminal = \r
+       .Audio_OutputTerminal = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_OutputTerminal_t), .Type = DTYPE_AudioInterface},\r
                        .Subtype                  = DSUBTYPE_OutputTerminal,\r
@@ -146,7 +146,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .TerminalStrIndex         = NO_DESCRIPTOR\r
                },\r
 \r
-       .AudioStreamInterface_Alt0 = \r
+       .Audio_StreamInterface_Alt0 = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -162,7 +162,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex        = NO_DESCRIPTOR\r
                },\r
 \r
-       .AudioStreamInterface_Alt1 = \r
+       .Audio_StreamInterface_Alt1 = \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
-       .AudioStreamInterface_SPC = \r
+       .Audio_StreamInterface_SPC = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_Interface_AS_t), .Type = DTYPE_AudioInterface},\r
                        .Subtype                  = DSUBTYPE_General,\r
@@ -189,7 +189,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .AudioFormat              = 0x0001\r
                },\r
                \r
-       .AudioFormat = \r
+       .Audio_AudioFormat = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_Format_t), .Type = DTYPE_AudioInterface},\r
                        .Subtype                  = DSUBTYPE_Format,\r
@@ -199,12 +199,13 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        \r
                        .SubFrameSize             = 0x02,\r
                        .BitResolution            = 16,\r
-                       .SampleFrequencyType      = (sizeof(ConfigurationDescriptor.AudioFormat.SampleFrequencies) / sizeof(Audio_SampleFreq_t)),\r
+                       .SampleFrequencyType      = (sizeof(ConfigurationDescriptor.Audio_AudioFormat.SampleFrequencies) /\r
+                                                    sizeof(Audio_SampleFreq_t)),\r
                \r
                        .SampleFrequencies        = {SAMPLE_FREQ(AUDIO_SAMPLE_FREQUENCY)}\r
                },\r
        \r
-       .AudioEndpoint = \r
+       .Audio_StreamEndpoint = \r
                {\r
                        .Endpoint = \r
                                {\r
@@ -220,7 +221,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .SyncEndpointNumber       = 0\r
                },\r
                \r
-       .AudioEndpoint_SPC = \r
+       .Audio_StreamEndpoint_SPC = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_StreamEndpoint_Spc_t), .Type = DTYPE_AudioEndpoint},\r
                        .Subtype                  = DSUBTYPE_General,\r
index bede69f..d9048ab 100644 (file)
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t Config;\r
-                       USB_Descriptor_Interface_t            AudioControlInterface;\r
-                       USB_Audio_Interface_AC_t              AudioControlInterface_SPC;\r
-                       USB_Audio_InputTerminal_t             InputTerminal;\r
-                       USB_Audio_OutputTerminal_t            OutputTerminal;\r
-                       USB_Descriptor_Interface_t            AudioStreamInterface_Alt0;\r
-                       USB_Descriptor_Interface_t            AudioStreamInterface_Alt1;\r
-                       USB_Audio_Interface_AS_t              AudioStreamInterface_SPC;\r
-                       USB_Audio_Format_t                    AudioFormat;\r
-                       USB_Audio_StreamEndpoint_Std_t        AudioEndpoint;\r
-                       USB_Audio_StreamEndpoint_Spc_t        AudioEndpoint_SPC;\r
+                       USB_Descriptor_Interface_t            Audio_ControlInterface;\r
+                       USB_Audio_Interface_AC_t              Audio_ControlInterface_SPC;\r
+                       USB_Audio_InputTerminal_t             Audio_InputTerminal;\r
+                       USB_Audio_OutputTerminal_t            Audio_OutputTerminal;\r
+                       USB_Descriptor_Interface_t            Audio_StreamInterface_Alt0;\r
+                       USB_Descriptor_Interface_t            Audio_StreamInterface_Alt1;\r
+                       USB_Audio_Interface_AS_t              Audio_StreamInterface_SPC;\r
+                       USB_Audio_Format_t                    Audio_AudioFormat;\r
+                       USB_Audio_StreamEndpoint_Std_t        Audio_StreamEndpoint;\r
+                       USB_Audio_StreamEndpoint_Spc_t        Audio_StreamEndpoint_SPC;\r
                } USB_Descriptor_Configuration_t;\r
                \r
        /* Function Prototypes: */\r
index dcc3a26..17a9d30 100644 (file)
@@ -86,7 +86,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .MaxPowerConsumption      = USB_CONFIG_POWER_MA(100)\r
                },\r
                \r
-       .AudioControlInterface = \r
+       .Audio_ControlInterface = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -102,7 +102,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex        = NO_DESCRIPTOR\r
                },\r
        \r
-       .AudioControlInterface_SPC = \r
+       .Audio_ControlInterface_SPC = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_Interface_AC_t), .Type = DTYPE_AudioInterface},\r
                        .Subtype                  = DSUBTYPE_Header,\r
@@ -116,7 +116,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceNumbers         = {1},\r
                },\r
 \r
-       .InputTerminal = \r
+       .Audio_InputTerminal = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_InputTerminal_t), .Type = DTYPE_AudioInterface},\r
                        .Subtype                  = DSUBTYPE_InputTerminal,\r
@@ -132,7 +132,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .TerminalStrIndex         = NO_DESCRIPTOR\r
                },\r
 \r
-       .OutputTerminal = \r
+       .Audio_OutputTerminal = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_OutputTerminal_t), .Type = DTYPE_AudioInterface},\r
                        .Subtype                  = DSUBTYPE_OutputTerminal,\r
@@ -146,7 +146,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .TerminalStrIndex         = NO_DESCRIPTOR                       \r
                },\r
 \r
-       .AudioStreamInterface_Alt0 = \r
+       .Audio_StreamInterface_Alt0 = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -162,7 +162,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex        = NO_DESCRIPTOR\r
                },\r
 \r
-       .AudioStreamInterface_Alt1 = \r
+       .Audio_StreamInterface_Alt1 = \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
-       .AudioStreamInterface_SPC = \r
+       .Audio_StreamInterface_SPC = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_Interface_AS_t), .Type = DTYPE_AudioInterface},\r
                        .Subtype                  = DSUBTYPE_General,\r
@@ -189,7 +189,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .AudioFormat              = 0x0001\r
                },\r
                \r
-       .AudioFormat = \r
+       .Audio_AudioFormat = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_Format_t), .Type = DTYPE_AudioInterface},\r
                        .Subtype                  = DSUBTYPE_Format,\r
@@ -200,11 +200,12 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .SubFrameSize             = 0x02,\r
                        .BitResolution            = 16,\r
 \r
-                       .SampleFrequencyType      = (sizeof(ConfigurationDescriptor.AudioFormat.SampleFrequencies) / sizeof(Audio_SampleFreq_t)),               \r
+                       .SampleFrequencyType      = (sizeof(ConfigurationDescriptor.Audio_AudioFormat.SampleFrequencies) /\r
+                                                    sizeof(Audio_SampleFreq_t)),               \r
                        .SampleFrequencies        = {SAMPLE_FREQ(AUDIO_SAMPLE_FREQUENCY)}\r
                },\r
        \r
-       .AudioEndpoint = \r
+       .Audio_StreamEndpoint = \r
                {\r
                        .Endpoint = \r
                                {\r
@@ -220,7 +221,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .SyncEndpointNumber       = 0\r
                },\r
                \r
-       .AudioEndpoint_SPC = \r
+       .Audio_StreamEndpoint_SPC = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_StreamEndpoint_Spc_t), .Type = DTYPE_AudioEndpoint},\r
                        .Subtype                  = DSUBTYPE_General,\r
index 259ea8f..b08ec2f 100644 (file)
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t Config;\r
-                       USB_Descriptor_Interface_t            AudioControlInterface;\r
-                       USB_Audio_Interface_AC_t              AudioControlInterface_SPC;\r
-                       USB_Audio_InputTerminal_t             InputTerminal;\r
-                       USB_Audio_OutputTerminal_t            OutputTerminal;\r
-                       USB_Descriptor_Interface_t            AudioStreamInterface_Alt0;\r
-                       USB_Descriptor_Interface_t            AudioStreamInterface_Alt1;\r
-                       USB_Audio_Interface_AS_t              AudioStreamInterface_SPC;\r
-                       USB_Audio_Format_t                    AudioFormat;\r
-                       USB_Audio_StreamEndpoint_Std_t        AudioEndpoint;\r
-                       USB_Audio_StreamEndpoint_Spc_t        AudioEndpoint_SPC;\r
+                       USB_Descriptor_Interface_t            Audio_ControlInterface;\r
+                       USB_Audio_Interface_AC_t              Audio_ControlInterface_SPC;\r
+                       USB_Audio_InputTerminal_t             Audio_InputTerminal;\r
+                       USB_Audio_OutputTerminal_t            Audio_OutputTerminal;\r
+                       USB_Descriptor_Interface_t            Audio_StreamInterface_Alt0;\r
+                       USB_Descriptor_Interface_t            Audio_StreamInterface_Alt1;\r
+                       USB_Audio_Interface_AS_t              Audio_StreamInterface_SPC;\r
+                       USB_Audio_Format_t                    Audio_AudioFormat;\r
+                       USB_Audio_StreamEndpoint_Std_t        Audio_StreamEndpoint;\r
+                       USB_Audio_StreamEndpoint_Spc_t        Audio_StreamEndpoint_SPC;\r
                } USB_Descriptor_Configuration_t;\r
                \r
        /* Function Prototypes: */\r
index bd8ec1d..d9b154d 100644 (file)
@@ -98,7 +98,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .MaxPowerConsumption    = USB_CONFIG_POWER_MA(100)\r
                },\r
                \r
-       .IAD1 = \r
+       .CDC1_IAD = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Interface_Association_t), .Type = DTYPE_InterfaceAssociation},\r
 \r
@@ -206,7 +206,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .PollingIntervalMS      = 0x00\r
                },\r
 \r
-       .IAD2 = \r
+       .CDC2_IAD = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Interface_Association_t), .Type = DTYPE_InterfaceAssociation},\r
 \r
index 6b6ab40..b8ebd0a 100644 (file)
@@ -89,7 +89,7 @@
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t    Config;\r
-                       USB_Descriptor_Interface_Association_t   IAD1;\r
+                       USB_Descriptor_Interface_Association_t   CDC1_IAD;\r
                        USB_Descriptor_Interface_t               CDC1_CCI_Interface;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC1_Functional_IntHeader;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC1_Functional_CallManagement;\r
@@ -99,7 +99,7 @@
                        USB_Descriptor_Interface_t               CDC1_DCI_Interface;\r
                        USB_Descriptor_Endpoint_t                CDC1_DataOutEndpoint;\r
                        USB_Descriptor_Endpoint_t                CDC1_DataInEndpoint;\r
-                       USB_Descriptor_Interface_Association_t   IAD2;\r
+                       USB_Descriptor_Interface_Association_t   CDC2_IAD;\r
                        USB_Descriptor_Interface_t               CDC2_CCI_Interface;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC2_Functional_IntHeader;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC2_Functional_CallManagement;\r
index 8e99683..d3afa86 100644 (file)
@@ -112,7 +112,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .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
@@ -128,7 +128,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .GenericHID = \r
+       .HID_GenericHID = \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
-       .GenericINEndpoint = \r
+       .HID_ReportINEndpoint = \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
-       .GenericOUTEndpoint = \r
+       .HID_ReportOUTEndpoint = \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
-                       Address = (void*)&ConfigurationDescriptor.GenericHID;\r
+                       Address = (void*)&ConfigurationDescriptor.HID_GenericHID;\r
                        Size    = sizeof(USB_Descriptor_HID_t);\r
                        break;\r
                case DTYPE_Report: \r
index 259dfff..364ff3e 100644 (file)
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t Config;\r
-                       USB_Descriptor_Interface_t            Interface;\r
-                       USB_Descriptor_HID_t                  GenericHID;\r
-               USB_Descriptor_Endpoint_t             GenericINEndpoint;\r
-               USB_Descriptor_Endpoint_t             GenericOUTEndpoint;\r
+                       USB_Descriptor_Interface_t            HID_Interface;\r
+                       USB_Descriptor_HID_t                  HID_GenericHID;\r
+               USB_Descriptor_Endpoint_t             HID_ReportINEndpoint;\r
+               USB_Descriptor_Endpoint_t             HID_ReportOUTEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
                                        \r
        /* Macros: */\r
index eb1969b..dcc5d69 100644 (file)
@@ -122,7 +122,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .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
@@ -138,7 +138,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .JoystickHID = \r
+       .HID_JoystickHID = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_HID_t), .Type = DTYPE_HID},\r
                                                                         \r
@@ -149,7 +149,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .HIDReportLength        = sizeof(JoystickReport)\r
                },\r
 \r
-       .JoystickEndpoint = \r
+       .HID_ReportINEndpoint = \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
-                       Address = (void*)&ConfigurationDescriptor.JoystickHID;\r
+                       Address = (void*)&ConfigurationDescriptor.HID_JoystickHID;\r
                        Size    = sizeof(USB_Descriptor_HID_t);\r
                        break;\r
                case DTYPE_Report: \r
index 451ae6c..c336710 100644 (file)
@@ -68,9 +68,9 @@
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t Config;\r
-                       USB_Descriptor_Interface_t            Interface;\r
-                       USB_Descriptor_HID_t                  JoystickHID;\r
-               USB_Descriptor_Endpoint_t             JoystickEndpoint;\r
+                       USB_Descriptor_Interface_t            HID_Interface;\r
+                       USB_Descriptor_HID_t                  HID_JoystickHID;\r
+               USB_Descriptor_Endpoint_t             HID_ReportINEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
                                        \r
        /* Macros: */\r
index 024547e..879b289 100644 (file)
@@ -129,7 +129,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .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
@@ -145,7 +145,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .KeyboardHID = \r
+       .HID_KeyboardHID = \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
-       .KeyboardEndpoint = \r
+       .HID_ReportINEndpoint = \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
-       .KeyboardLEDsEndpoint = \r
+       .HID_ReportOUTEndpoint = \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
-                       Address = (void*)&ConfigurationDescriptor.KeyboardHID;\r
+                       Address = (void*)&ConfigurationDescriptor.HID_KeyboardHID;\r
                        Size    = sizeof(USB_Descriptor_HID_t);\r
                        break;\r
                case DTYPE_Report: \r
index 4f8db0a..22701a3 100644 (file)
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t Config;\r
-                       USB_Descriptor_Interface_t            Interface;\r
-                       USB_Descriptor_HID_t                  KeyboardHID;\r
-               USB_Descriptor_Endpoint_t             KeyboardEndpoint;\r
-               USB_Descriptor_Endpoint_t             KeyboardLEDsEndpoint;\r
+                       USB_Descriptor_Interface_t            HID_Interface;\r
+                       USB_Descriptor_HID_t                  HID_KeyboardHID;\r
+               USB_Descriptor_Endpoint_t             HID_ReportINEndpoint;\r
+               USB_Descriptor_Endpoint_t             HID_ReportOUTEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
                                        \r
        /* Macros: */\r
index e2f868f..80eac90 100644 (file)
@@ -162,7 +162,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .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
@@ -178,7 +178,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .KeyboardHID = \r
+       .HID1_KeyboardHID = \r
                {  \r
                        .Header                 = {.Size = sizeof(USB_Descriptor_HID_t), .Type = DTYPE_HID},\r
                        \r
@@ -189,7 +189,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .HIDReportLength        = sizeof(KeyboardReport)\r
                },\r
                \r
-       .KeyboardInEndpoint = \r
+       .HID1_ReportINEndpoint = \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
-       .KeyboardOutEndpoint = \r
+       .HID1_ReportOUTEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
 \r
@@ -209,7 +209,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .PollingIntervalMS      = 0x0A\r
                },\r
 \r
-       .MouseInterface = \r
+       .HID2_MouseInterface = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -225,7 +225,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .MouseHID = \r
+       .HID2_MouseHID = \r
                {  \r
                        .Header                 = {.Size = sizeof(USB_Descriptor_HID_t), .Type = DTYPE_HID},\r
                        \r
@@ -236,7 +236,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .HIDReportLength        = sizeof(MouseReport)\r
                },\r
                \r
-       .MouseInEndpoint = \r
+       .HID2_ReportINEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
 \r
@@ -325,12 +325,12 @@ uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, const uint8_t wIndex,
                case DTYPE_HID: \r
                        if (!(wIndex))\r
                        {\r
-                               Address = (void*)&ConfigurationDescriptor.KeyboardHID;\r
+                               Address = (void*)&ConfigurationDescriptor.HID1_KeyboardHID;\r
                                Size    = sizeof(USB_Descriptor_HID_t);\r
                        }\r
                        else\r
                        {\r
-                               Address = (void*)&ConfigurationDescriptor.MouseHID;\r
+                               Address = (void*)&ConfigurationDescriptor.HID2_MouseHID;\r
                                Size    = sizeof(USB_Descriptor_HID_t);                 \r
                        }\r
                        break;\r
index 2361981..f722125 100644 (file)
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t Config;\r
-                       USB_Descriptor_Interface_t            KeyboardInterface;\r
-                       USB_Descriptor_HID_t                  KeyboardHID;\r
-               USB_Descriptor_Endpoint_t             KeyboardInEndpoint;\r
-               USB_Descriptor_Endpoint_t             KeyboardOutEndpoint;\r
-                       USB_Descriptor_Interface_t            MouseInterface;\r
-                       USB_Descriptor_HID_t                  MouseHID;\r
-               USB_Descriptor_Endpoint_t             MouseInEndpoint;\r
+                       USB_Descriptor_Interface_t            HID1_KeyboardInterface;\r
+                       USB_Descriptor_HID_t                  HID1_KeyboardHID;\r
+               USB_Descriptor_Endpoint_t             HID1_ReportINEndpoint;\r
+               USB_Descriptor_Endpoint_t             HID1_ReportOUTEndpoint;\r
+                       USB_Descriptor_Interface_t            HID2_MouseInterface;\r
+                       USB_Descriptor_HID_t                  HID2_MouseHID;\r
+               USB_Descriptor_Endpoint_t             HID2_ReportINEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
                                        \r
        /* Macros: */\r
index 5963ea6..4edcb5e 100644 (file)
@@ -86,7 +86,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .MaxPowerConsumption      = USB_CONFIG_POWER_MA(100)\r
                },\r
                \r
-       .AudioControlInterface = \r
+       .Audio_ControlInterface = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -102,7 +102,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex        = NO_DESCRIPTOR                       \r
                },\r
        \r
-       .AudioControlInterface_SPC = \r
+       .Audio_ControlInterface_SPC = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_Interface_AC_t), .Type = DTYPE_AudioInterface},\r
                        .Subtype                  = DSUBTYPE_Header,\r
@@ -114,7 +114,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceNumbers         = {1},                        \r
                },\r
 \r
-       .AudioStreamInterface = \r
+       .Audio_StreamInterface = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -130,14 +130,15 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex        = NO_DESCRIPTOR\r
                },\r
                \r
-       .AudioStreamInterface_SPC = \r
+       .Audio_StreamInterface_SPC = \r
                {\r
                        .Header                   = {.Size = sizeof(USB_Audio_Interface_MIDI_AS_t), .Type = DTYPE_AudioInterface},\r
                        .Subtype                  = DSUBTYPE_General,\r
 \r
                        .AudioSpecification       = VERSION_BCD(01.00),\r
                        \r
-                       .TotalLength              = (sizeof(USB_Descriptor_Configuration_t) - offsetof(USB_Descriptor_Configuration_t, AudioStreamInterface_SPC))\r
+                       .TotalLength              = (sizeof(USB_Descriptor_Configuration_t) -\r
+                                                    offsetof(USB_Descriptor_Configuration_t, Audio_StreamInterface_SPC))\r
                },\r
 \r
        .MIDI_In_Jack_Emb = \r
index f44b8c7..fffe866 100644 (file)
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t Config;\r
-                       USB_Descriptor_Interface_t            AudioControlInterface;\r
-                       USB_Audio_Interface_AC_t              AudioControlInterface_SPC;\r
-                       USB_Descriptor_Interface_t            AudioStreamInterface;\r
-                       USB_Audio_Interface_MIDI_AS_t         AudioStreamInterface_SPC;\r
+                       USB_Descriptor_Interface_t            Audio_ControlInterface;\r
+                       USB_Audio_Interface_AC_t              Audio_ControlInterface_SPC;\r
+                       USB_Descriptor_Interface_t            Audio_StreamInterface;\r
+                       USB_Audio_Interface_MIDI_AS_t         Audio_StreamInterface_SPC;\r
                        USB_MIDI_In_Jack_t                    MIDI_In_Jack_Emb;\r
                        USB_MIDI_In_Jack_t                    MIDI_In_Jack_Ext;\r
                        USB_MIDI_Out_Jack_t                   MIDI_Out_Jack_Emb;\r
index 40ce620..856d408 100644 (file)
@@ -98,7 +98,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .MaxPowerConsumption    = USB_CONFIG_POWER_MA(100)\r
                },\r
                \r
-       .Interface = \r
+       .MS_Interface = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -114,7 +114,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .DataInEndpoint = \r
+       .MS_DataInEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
 \r
@@ -124,7 +124,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .PollingIntervalMS      = 0x00\r
                },\r
 \r
-       .DataOutEndpoint = \r
+       .MS_DataOutEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
 \r
index aeb3d48..dae0606 100644 (file)
@@ -59,9 +59,9 @@
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t Config;\r
-                       USB_Descriptor_Interface_t            Interface;\r
-                       USB_Descriptor_Endpoint_t             DataInEndpoint;\r
-                       USB_Descriptor_Endpoint_t             DataOutEndpoint;\r
+                       USB_Descriptor_Interface_t            MS_Interface;\r
+                       USB_Descriptor_Endpoint_t             MS_DataInEndpoint;\r
+                       USB_Descriptor_Endpoint_t             MS_DataOutEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
                \r
        /* Function Prototypes: */\r
index e622def..52e0a8c 100644 (file)
@@ -122,7 +122,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .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
@@ -138,7 +138,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .MouseHID = \r
+       .HID_MouseHID = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_HID_t), .Type = DTYPE_HID},\r
                                                                         \r
@@ -149,7 +149,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .HIDReportLength        = sizeof(MouseReport)\r
                },\r
 \r
-       .MouseEndpoint = \r
+       .HID_ReportINEndpoint = \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
-                       Address = (void*)&ConfigurationDescriptor.MouseHID;\r
+                       Address = (void*)&ConfigurationDescriptor.HID_MouseHID;\r
                        Size    = sizeof(USB_Descriptor_HID_t);\r
                        break;\r
                case DTYPE_Report: \r
index a8a3e36..f31fdd4 100644 (file)
@@ -68,9 +68,9 @@
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t Config;\r
-                       USB_Descriptor_Interface_t            Interface;\r
-                       USB_Descriptor_HID_t                  MouseHID;\r
-               USB_Descriptor_Endpoint_t             MouseEndpoint;\r
+                       USB_Descriptor_Interface_t            HID_Interface;\r
+                       USB_Descriptor_HID_t                  HID_MouseHID;\r
+               USB_Descriptor_Endpoint_t             HID_ReportINEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
                                        \r
        /* Macros: */\r
index 18dec8a..b25b5d2 100644 (file)
@@ -86,7 +86,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .MaxPowerConsumption    = USB_CONFIG_POWER_MA(100)\r
                },\r
                \r
-       .CCI_Interface = \r
+       .CDC_CCI_Interface = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -134,7 +134,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .Data                   = {0x00, 0x01}\r
                },\r
 \r
-       .ManagementEndpoint = \r
+       .CDC_ManagementEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                                                                                 \r
@@ -144,7 +144,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .PollingIntervalMS      = 0x02\r
                },\r
 \r
-       .DCI_Interface = \r
+       .CDC_DCI_Interface = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -160,7 +160,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .DataOutEndpoint = \r
+       .RNDIS_DataOutEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                                                                                 \r
@@ -170,7 +170,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .PollingIntervalMS      = 0x00\r
                },\r
                \r
-       .DataInEndpoint = \r
+       .RNDIS_DataInEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                                                                                 \r
index 252b424..0245049 100644 (file)
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t    Config;\r
-                       USB_Descriptor_Interface_t               CCI_Interface;\r
+                       USB_Descriptor_Interface_t               CDC_CCI_Interface;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_Header;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_CallManagement;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(1)             CDC_Functional_AbstractControlManagement;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_Union;\r
-                       USB_Descriptor_Endpoint_t                ManagementEndpoint;\r
-                       USB_Descriptor_Interface_t               DCI_Interface;\r
-                       USB_Descriptor_Endpoint_t                DataOutEndpoint;\r
-                       USB_Descriptor_Endpoint_t                DataInEndpoint;\r
+                       USB_Descriptor_Endpoint_t                CDC_ManagementEndpoint;\r
+                       USB_Descriptor_Interface_t               CDC_DCI_Interface;\r
+                       USB_Descriptor_Endpoint_t                RNDIS_DataOutEndpoint;\r
+                       USB_Descriptor_Endpoint_t                RNDIS_DataInEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
 \r
        /* Function Prototypes: */\r
index c7d751a..ff2ebf2 100644 (file)
@@ -98,7 +98,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .MaxPowerConsumption    = USB_CONFIG_POWER_MA(100)\r
                },\r
                \r
-       .CCI_Interface = \r
+       .CDC_CCI_Interface = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -146,7 +146,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .Data                   = {0x00, 0x01}\r
                },\r
 \r
-       .ManagementEndpoint = \r
+       .CDC_ManagementEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                                                                                 \r
@@ -156,7 +156,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .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
@@ -172,7 +172,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .DataOutEndpoint = \r
+       .CDC_DataOutEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                                                                                 \r
@@ -182,7 +182,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .PollingIntervalMS      = 0x00\r
                },\r
                \r
-       .DataInEndpoint = \r
+       .CDC_DataInEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                                                                                 \r
index 8f1ecd0..5610854 100644 (file)
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t    Config;\r
-                       USB_Descriptor_Interface_t               CCI_Interface;\r
+                       USB_Descriptor_Interface_t               CDC_CCI_Interface;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_IntHeader;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_CallManagement;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(1)             CDC_Functional_AbstractControlManagement;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_Union;\r
-                       USB_Descriptor_Endpoint_t                ManagementEndpoint;\r
-                       USB_Descriptor_Interface_t               DCI_Interface;\r
-                       USB_Descriptor_Endpoint_t                DataOutEndpoint;\r
-                       USB_Descriptor_Endpoint_t                DataInEndpoint;\r
+                       USB_Descriptor_Endpoint_t                CDC_ManagementEndpoint;\r
+                       USB_Descriptor_Interface_t               CDC_DCI_Interface;\r
+                       USB_Descriptor_Endpoint_t                CDC_DataOutEndpoint;\r
+                       USB_Descriptor_Endpoint_t                CDC_DataInEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
 \r
        /* Function Prototypes: */\r
index c6aeb2a..7a5fc34 100644 (file)
@@ -122,7 +122,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .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
@@ -138,7 +138,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .MouseHID = \r
+       .HID_MouseHID = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_HID_Descriptor_t), .Type = DTYPE_HID},\r
 \r
@@ -149,7 +149,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .HIDReportLength        = sizeof(MouseReport)\r
                },\r
 \r
-       .MouseEndpoint = \r
+       .HID_ReportINEndpoint = \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
-                       Address = (void*)&ConfigurationDescriptor.MouseHID;\r
+                       Address = (void*)&ConfigurationDescriptor.HID_MouseHID;\r
                        Size    = sizeof(USB_HID_Descriptor_t);\r
                        break;\r
                case DTYPE_Report: \r
index aa291f3..f5364ce 100644 (file)
@@ -50,9 +50,9 @@
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t Config;\r
-                       USB_Descriptor_Interface_t            Interface;\r
-                       USB_HID_Descriptor_t                  MouseHID;\r
-               USB_Descriptor_Endpoint_t             MouseEndpoint;\r
+                       USB_Descriptor_Interface_t            HID_Interface;\r
+                       USB_HID_Descriptor_t                  HID_MouseHID;\r
+               USB_Descriptor_Endpoint_t             HID_ReportINEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
                                        \r
        /* Macros: */\r
index 6339a92..d0aca1e 100644 (file)
@@ -147,7 +147,7 @@ int main(void)
                                                                 (ReportItem->Attributes.Usage.Usage  == USAGE_SCROLL_WHEEL)       &&\r
                                                                 (ReportItem->ItemType                == REPORT_ITEM_TYPE_In))\r
                                                {\r
-                                                       int16_t WheelDelta = HID_ALIGN_DATA(ReportItem->Value, int16_t);\r
+                                                       int16_t WheelDelta = HID_ALIGN_DATA(ReportItem, int16_t);\r
                                                        \r
                                                        if (WheelDelta)\r
                                                          LEDMask = (LEDS_LED1 | LEDS_LED2 | ((WheelDelta > 0) ? LEDS_LED3 : LEDS_LED4));\r
@@ -157,7 +157,7 @@ int main(void)
                                                                  (ReportItem->Attributes.Usage.Usage == USAGE_Y))                 &&\r
                                                                 (ReportItem->ItemType                == REPORT_ITEM_TYPE_In))\r
                                                {\r
-                                                       int16_t DeltaMovement = HID_ALIGN_DATA(ReportItem->Value, int16_t);\r
+                                                       int16_t DeltaMovement = HID_ALIGN_DATA(ReportItem, int16_t);\r
                                                        \r
                                                        if (ReportItem->Attributes.Usage.Usage == USAGE_X)\r
                                                        {\r
index fe43103..85d1b6a 100644 (file)
@@ -19,6 +19,8 @@
   *  - Added ENABLE_TELNET_SERVER compile time option to the Webserver project to disable the TELNET server if desired\r
   *  - Increased throughput of the USBtoSerial demo on systems that send multiple bytes per packet (thanks to Opendous Inc.)\r
   *  - Double bank CDC endpoints in the XPLAIN Bridge project, re-enable JTAG once the mode selection pin has been sampled.\r
+  *  - Standardized the naming scheme given to configuration descriptor sub-elements in the Device mode demos, bootloaders\r
+  *    and projects\r
   *\r
   *  <b>Fixed:</b>\r
   *  - Fixed software PDI/TPI programming mode in the AVRISP project not correctly toggling just the clock pin\r
index bdc198a..f756e29 100644 (file)
@@ -86,7 +86,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .MaxPowerConsumption    = USB_CONFIG_POWER_MA(100)\r
                },\r
 \r
-       .AVRISPInterface = \r
+       .AVRISP_Interface = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -102,7 +102,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .DataInEndpoint = \r
+       .AVRISP_DataInEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                        \r
@@ -112,7 +112,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .PollingIntervalMS      = 0x00\r
                },\r
 \r
-       .DataOutEndpoint =\r
+       .AVRISP_DataOutEndpoint =\r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                        \r
index 6a34b2b..ced4738 100644 (file)
@@ -56,9 +56,9 @@
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t    Config;\r
-                       USB_Descriptor_Interface_t               AVRISPInterface;\r
-                       USB_Descriptor_Endpoint_t                DataInEndpoint;\r
-                       USB_Descriptor_Endpoint_t                DataOutEndpoint;\r
+                       USB_Descriptor_Interface_t               AVRISP_Interface;\r
+                       USB_Descriptor_Endpoint_t                AVRISP_DataInEndpoint;\r
+                       USB_Descriptor_Endpoint_t                AVRISP_DataOutEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
 \r
        /* Function Prototypes: */\r
index 2a5d40e..d29b3b2 100644 (file)
@@ -86,7 +86,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .MaxPowerConsumption    = USB_CONFIG_POWER_MA(100)\r
                },\r
                \r
-       .CCI_Interface = \r
+       .CDC_CCI_Interface = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -134,7 +134,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .Data                   = {0x00, 0x01}\r
                },\r
 \r
-       .ManagementEndpoint = \r
+       .CDC_ManagementEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                        \r
@@ -144,7 +144,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .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
@@ -160,7 +160,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .DataOutEndpoint = \r
+       .CDC_DataOutEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                        \r
@@ -170,7 +170,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .PollingIntervalMS      = 0x00\r
                },\r
                \r
-       .DataInEndpoint = \r
+       .CDC_DataInEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                        \r
index a5461dd..fc47f6f 100644 (file)
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t    Config;\r
-                       USB_Descriptor_Interface_t               CCI_Interface;\r
+                       USB_Descriptor_Interface_t               CDC_CCI_Interface;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_IntHeader;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_CallManagement;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(1)             CDC_Functional_AbstractControlManagement;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_Union;\r
-                       USB_Descriptor_Endpoint_t                ManagementEndpoint;\r
-                       USB_Descriptor_Interface_t               DCI_Interface;\r
-                       USB_Descriptor_Endpoint_t                DataOutEndpoint;\r
-                       USB_Descriptor_Endpoint_t                DataInEndpoint;\r
+                       USB_Descriptor_Endpoint_t                CDC_ManagementEndpoint;\r
+                       USB_Descriptor_Interface_t               CDC_DCI_Interface;\r
+                       USB_Descriptor_Endpoint_t                CDC_DataOutEndpoint;\r
+                       USB_Descriptor_Endpoint_t                CDC_DataInEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
 \r
        /* Function Prototypes: */\r
index e665ddb..9836d43 100644 (file)
@@ -100,7 +100,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .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
@@ -116,7 +116,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .MSDataInEndpoint = \r
+       .MS_DataInEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
 \r
@@ -126,7 +126,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .PollingIntervalMS      = 0x00\r
                },\r
 \r
-       .MSDataOutEndpoint = \r
+       .MS_DataOutEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
 \r
index 3b162ae..46a9c80 100644 (file)
@@ -76,9 +76,9 @@
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t    Config;\r
-                       USB_Descriptor_Interface_t               MSInterface;\r
-                       USB_Descriptor_Endpoint_t                MSDataInEndpoint;\r
-                       USB_Descriptor_Endpoint_t                MSDataOutEndpoint;\r
+                       USB_Descriptor_Interface_t               MS_Interface;\r
+                       USB_Descriptor_Endpoint_t                MS_DataInEndpoint;\r
+                       USB_Descriptor_Endpoint_t                MS_DataOutEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
                \r
        /* Function Prototypes: */\r
index bf057c3..367fea3 100644 (file)
@@ -98,7 +98,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .MaxPowerConsumption    = USB_CONFIG_POWER_MA(100)\r
                },\r
                \r
-       .CCI_Interface = \r
+       .CDC_CCI_Interface = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -146,7 +146,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .Data                   = {0x00, 0x01}\r
                },\r
 \r
-       .ManagementEndpoint = \r
+       .CDC_ManagementEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                        \r
@@ -156,7 +156,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .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
@@ -172,7 +172,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .DataOutEndpoint = \r
+       .CDC_DataOutEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                        \r
@@ -182,7 +182,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .PollingIntervalMS      = 0x00\r
                },\r
                \r
-       .DataInEndpoint = \r
+       .CDC_DataInEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                        \r
index 2141812..2c56fa3 100644 (file)
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t    Config;\r
-                       USB_Descriptor_Interface_t               CCI_Interface;\r
+                       USB_Descriptor_Interface_t               CDC_CCI_Interface;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_IntHeader;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_CallManagement;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(1)             CDC_Functional_AbstractControlManagement;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_Union;\r
-                       USB_Descriptor_Endpoint_t                ManagementEndpoint;\r
-                       USB_Descriptor_Interface_t               DCI_Interface;\r
-                       USB_Descriptor_Endpoint_t                DataOutEndpoint;\r
-                       USB_Descriptor_Endpoint_t                DataInEndpoint;\r
+                       USB_Descriptor_Endpoint_t                CDC_ManagementEndpoint;\r
+                       USB_Descriptor_Interface_t               CDC_DCI_Interface;\r
+                       USB_Descriptor_Endpoint_t                CDC_DataOutEndpoint;\r
+                       USB_Descriptor_Endpoint_t                CDC_DataInEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
 \r
        /* Function Prototypes: */\r
index b9aa0d7..ee62358 100644 (file)
@@ -120,7 +120,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .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
@@ -136,7 +136,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .KeyboardHID = \r
+       .HID_KeyboardHID = \r
                {  \r
                        .Header                 = {.Size = sizeof(USB_HID_Descriptor_t), .Type = DTYPE_HID},\r
                        \r
@@ -147,7 +147,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .HIDReportLength        = sizeof(KeyboardReport)\r
                },\r
                \r
-       .KeyboardEndpoint = \r
+       .HID_ReportINEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
 \r
@@ -233,7 +233,7 @@ uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, const uint8_t wIndex,
                        \r
                        break;\r
                case DTYPE_HID:\r
-                       Address = (void*)&ConfigurationDescriptor.KeyboardHID;\r
+                       Address = (void*)&ConfigurationDescriptor.HID_KeyboardHID;\r
                        Size    = sizeof(USB_HID_Descriptor_t);\r
                        break;\r
                case DTYPE_Report:\r
index 6dbdd25..88eaf33 100644 (file)
@@ -51,9 +51,9 @@
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t Config; /**< Configuration descriptor header structure */\r
-                       USB_Descriptor_Interface_t            Interface; /**< Keyboard interface descriptor */\r
-                       USB_HID_Descriptor_t                  KeyboardHID; /**< Keyboard HID descriptor */\r
-               USB_Descriptor_Endpoint_t             KeyboardEndpoint; /**< Keyboard key report endpoint descriptor */\r
+                       USB_Descriptor_Interface_t            HID_Interface; /**< Keyboard interface descriptor */\r
+                       USB_HID_Descriptor_t                  HID_KeyboardHID; /**< Keyboard HID descriptor */\r
+               USB_Descriptor_Endpoint_t             HID_ReportINEndpoint; /**< Keyboard key report endpoint descriptor */\r
                } USB_Descriptor_Configuration_t;\r
                                        \r
        /* Macros: */\r
index e4f5666..48778d8 100644 (file)
@@ -124,7 +124,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .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
@@ -140,7 +140,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .MSDataInEndpoint = \r
+       .MS_DataInEndpoint = \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
-       .MSDataOutEndpoint = \r
+       .MS_DataOutEndpoint = \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
-       .HIDInterface = \r
+       .HID_Interface = \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
-       .HIDInfo = \r
+       .HID_GenericHID = \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
-       .HIDDataInEndpoint = \r
+       .HID_ReportINEndpoint = \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
-                       Address = (void*)&ConfigurationDescriptor.HIDInfo;\r
+                       Address = (void*)&ConfigurationDescriptor.HID_GenericHID;\r
                        Size    = sizeof(USB_HID_Descriptor_t);\r
                        break;\r
                case DTYPE_Report: \r
index a0f03c3..6c238ac 100644 (file)
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t Config;\r
-                       USB_Descriptor_Interface_t            MSInterface;\r
-                       USB_Descriptor_Endpoint_t             MSDataInEndpoint;\r
-                       USB_Descriptor_Endpoint_t             MSDataOutEndpoint;\r
-                       USB_Descriptor_Interface_t            HIDInterface;\r
-                       USB_HID_Descriptor_t                  HIDInfo;\r
-                       USB_Descriptor_Endpoint_t             HIDDataInEndpoint;\r
+                       USB_Descriptor_Interface_t            MS_Interface;\r
+                       USB_Descriptor_Endpoint_t             MS_DataInEndpoint;\r
+                       USB_Descriptor_Endpoint_t             MS_DataOutEndpoint;\r
+                       USB_Descriptor_Interface_t            HID_Interface;\r
+                       USB_HID_Descriptor_t                  HID_GenericHID;\r
+                       USB_Descriptor_Endpoint_t             HID_ReportINEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
                \r
        /* Function Prototypes: */\r
index 07c4581..3a3e9f2 100644 (file)
@@ -98,7 +98,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .MaxPowerConsumption    = USB_CONFIG_POWER_MA(100)\r
                },\r
                \r
-       .CCI_Interface = \r
+       .CDC_CCI_Interface = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -146,7 +146,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .Data                   = {0x00, 0x01}\r
                },\r
 \r
-       .ManagementEndpoint = \r
+       .CDC_ManagementEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                        \r
@@ -156,7 +156,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .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
@@ -172,7 +172,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .DataOutEndpoint = \r
+       .CDC_DataOutEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                        \r
@@ -182,7 +182,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .PollingIntervalMS      = 0x00\r
                },\r
                \r
-       .DataInEndpoint = \r
+       .CDC_DataInEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                        \r
index a5461dd..fc47f6f 100644 (file)
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t    Config;\r
-                       USB_Descriptor_Interface_t               CCI_Interface;\r
+                       USB_Descriptor_Interface_t               CDC_CCI_Interface;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_IntHeader;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_CallManagement;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(1)             CDC_Functional_AbstractControlManagement;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_Union;\r
-                       USB_Descriptor_Endpoint_t                ManagementEndpoint;\r
-                       USB_Descriptor_Interface_t               DCI_Interface;\r
-                       USB_Descriptor_Endpoint_t                DataOutEndpoint;\r
-                       USB_Descriptor_Endpoint_t                DataInEndpoint;\r
+                       USB_Descriptor_Endpoint_t                CDC_ManagementEndpoint;\r
+                       USB_Descriptor_Interface_t               CDC_DCI_Interface;\r
+                       USB_Descriptor_Endpoint_t                CDC_DataOutEndpoint;\r
+                       USB_Descriptor_Endpoint_t                CDC_DataInEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
 \r
        /* Function Prototypes: */\r
index 855bbd3..72adec3 100644 (file)
@@ -98,7 +98,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .MaxPowerConsumption    = USB_CONFIG_POWER_MA(100)\r
                },\r
                \r
-       .Interface = \r
+       .MS_Interface = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -114,7 +114,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .DataInEndpoint = \r
+       .MS_DataInEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
 \r
@@ -124,7 +124,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
                        .PollingIntervalMS      = 0x00\r
                },\r
 \r
-       .DataOutEndpoint = \r
+       .MS_DataOutEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
 \r
index dcaadda..e249fc4 100644 (file)
@@ -60,9 +60,9 @@
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t Config;\r
-                       USB_Descriptor_Interface_t            Interface;\r
-                       USB_Descriptor_Endpoint_t             DataInEndpoint;\r
-                       USB_Descriptor_Endpoint_t             DataOutEndpoint;\r
+                       USB_Descriptor_Interface_t            MS_Interface;\r
+                       USB_Descriptor_Endpoint_t             MS_DataInEndpoint;\r
+                       USB_Descriptor_Endpoint_t             MS_DataOutEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
                \r
        /* Function Prototypes: */\r
index 2f9db6a..e191783 100644 (file)
@@ -86,7 +86,7 @@ AVRISP_USB_Descriptor_Configuration_t PROGMEM AVRISP_ConfigurationDescriptor =
                        .MaxPowerConsumption    = USB_CONFIG_POWER_MA(100)\r
                },\r
 \r
-       .AVRISPInterface = \r
+       .AVRISP_Interface = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -102,7 +102,7 @@ AVRISP_USB_Descriptor_Configuration_t PROGMEM AVRISP_ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .DataInEndpoint = \r
+       .AVRISP_DataInEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                        \r
@@ -112,7 +112,7 @@ AVRISP_USB_Descriptor_Configuration_t PROGMEM AVRISP_ConfigurationDescriptor =
                        .PollingIntervalMS      = 0x00\r
                },\r
 \r
-       .DataOutEndpoint =\r
+       .AVRISP_DataOutEndpoint =\r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                        \r
index dfd5315..7287ce6 100644 (file)
@@ -56,9 +56,9 @@
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t    Config;\r
-                       USB_Descriptor_Interface_t               AVRISPInterface;\r
-                       USB_Descriptor_Endpoint_t                DataInEndpoint;\r
-                       USB_Descriptor_Endpoint_t                DataOutEndpoint;\r
+                       USB_Descriptor_Interface_t               AVRISP_Interface;\r
+                       USB_Descriptor_Endpoint_t                AVRISP_DataInEndpoint;\r
+                       USB_Descriptor_Endpoint_t                AVRISP_DataOutEndpoint;\r
                } AVRISP_USB_Descriptor_Configuration_t;\r
 \r
        /* Function Prototypes: */\r
index 60c2532..d1158b2 100644 (file)
@@ -98,7 +98,7 @@ USART_USB_Descriptor_Configuration_t PROGMEM USART_ConfigurationDescriptor =
                        .MaxPowerConsumption    = USB_CONFIG_POWER_MA(100)\r
                },\r
                \r
-       .CCI_Interface = \r
+       .CDC_CCI_Interface = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},\r
 \r
@@ -146,7 +146,7 @@ USART_USB_Descriptor_Configuration_t PROGMEM USART_ConfigurationDescriptor =
                        .Data                   = {0x00, 0x01}\r
                },\r
 \r
-       .ManagementEndpoint = \r
+       .CDC_ManagementEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                        \r
@@ -156,7 +156,7 @@ USART_USB_Descriptor_Configuration_t PROGMEM USART_ConfigurationDescriptor =
                        .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
@@ -172,7 +172,7 @@ USART_USB_Descriptor_Configuration_t PROGMEM USART_ConfigurationDescriptor =
                        .InterfaceStrIndex      = NO_DESCRIPTOR\r
                },\r
 \r
-       .DataOutEndpoint = \r
+       .CDC_DataOutEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                        \r
@@ -182,7 +182,7 @@ USART_USB_Descriptor_Configuration_t PROGMEM USART_ConfigurationDescriptor =
                        .PollingIntervalMS      = 0x00\r
                },\r
                \r
-       .DataInEndpoint = \r
+       .CDC_DataInEndpoint = \r
                {\r
                        .Header                 = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},\r
                        \r
index 7b5a391..a5e235c 100644 (file)
                typedef struct\r
                {\r
                        USB_Descriptor_Configuration_Header_t    Config;\r
-                       USB_Descriptor_Interface_t               CCI_Interface;\r
+                       USB_Descriptor_Interface_t               CDC_CCI_Interface;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_IntHeader;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_CallManagement;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(1)             CDC_Functional_AbstractControlManagement;\r
                        CDC_FUNCTIONAL_DESCRIPTOR(2)             CDC_Functional_Union;\r
-                       USB_Descriptor_Endpoint_t                ManagementEndpoint;\r
-                       USB_Descriptor_Interface_t               DCI_Interface;\r
-                       USB_Descriptor_Endpoint_t                DataOutEndpoint;\r
-                       USB_Descriptor_Endpoint_t                DataInEndpoint;\r
+                       USB_Descriptor_Endpoint_t                CDC_ManagementEndpoint;\r
+                       USB_Descriptor_Interface_t               CDC_DCI_Interface;\r
+                       USB_Descriptor_Endpoint_t                CDC_DataOutEndpoint;\r
+                       USB_Descriptor_Endpoint_t                CDC_DataInEndpoint;\r
                } USART_USB_Descriptor_Configuration_t;\r
 \r
        /* Function Prototypes: */\r
index a117560..f967d3b 100644 (file)
  *  \section SSec_Description Project Description: \r
  *\r
  *  This project serves a dual purpose. When loaded into the USB AVR on the XPLAIN board, it will act as either a USB to Serial\r
- *  converter for the XPLAIN's hardware USART (at a speed of 9600 baud), or a PDI programmer for the XMEGA. This project replaces\r
- *  the firmware preloaded onto the XPLAIN's onboard AT90USB1287 microcontroller.\r
+ *  converter for the XPLAIN's hardware USART (at a speed of 9600 baud), or an AVRStudio compaible PDI programmer for the XMEGA.\r
+ *  This project replaces the firmware preloaded onto the XPLAIN's onboard AT90USB1287 microcontroller.\r
  *\r
- *  When inserted, the JTAG port's TDI pin is read. If the pin is left high, the device will enumerate as a regular COM port on\r
- *  the host, which can then be opened and data exchanged between the XMEGA and Host as if the XMEGA was connected directly to\r
- *  the host's serial port. If the pin is pulled low, the device will enumerate as an AVRISP-MKII to the host, so that the XMEGA\r
- *  can be reprogrammed by AVRStudio or other compatible software such as avrdude.\r
+ *  When power to the board is applied, the TDI pin (pin 9) of the USB AVR's JTAG port is read. If the pin is left high, the device\r
+ *  will enumerate as a regular COM port on the host, which can then be opened and data exchanged between the XMEGA and Host as if\r
+ *  the XMEGA was connected directly to the host's serial port. If the pin is pulled low by shorting it to GND (pin 10), the device\r
+ *  will enumerate as an AVRISP-MKII to the host, so that the XMEGA can be reprogrammed by AVRStudio or other compatible software\r
+ *  such as avrdude.\r
  *\r
  *  After running this project for the first time on a new computer, you will need to supply the .INF file located in this project\r
  *  project's directory as the device's driver when running under Windows. This will enable Windows to use its inbuilt CDC drivers,\r
  *  negating the need for custom drivers for the device. Other Operating Systems should automatically use their own inbuilt CDC-ACM\r
  *  drivers.\r
  *\r
- *  This project relies on files from the LUFA AVRISP-MKII project.\r
+ *  This project relies on files from the LUFA AVRISP-MKII project for compilation.\r
  *\r
  *  \section SSec_Options Project Options\r
  *\r