All USB Class Driver configuration struct values are now non-const, to allow for...
authorDean Camera <dean@fourwalledcubicle.com>
Sun, 19 Feb 2012 15:24:05 +0000 (15:24 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Sun, 19 Feb 2012 15:24:05 +0000 (15:24 +0000)
17 files changed:
LUFA/DoxygenPages/ChangeLog.txt
LUFA/Drivers/USB/Class/Device/AudioClassDevice.h
LUFA/Drivers/USB/Class/Device/CDCClassDevice.h
LUFA/Drivers/USB/Class/Device/HIDClassDevice.h
LUFA/Drivers/USB/Class/Device/MIDIClassDevice.h
LUFA/Drivers/USB/Class/Device/MassStorageClassDevice.h
LUFA/Drivers/USB/Class/Device/RNDISClassDevice.h
LUFA/Drivers/USB/Class/Host/AndroidAccessoryClassHost.c
LUFA/Drivers/USB/Class/Host/AndroidAccessoryClassHost.h
LUFA/Drivers/USB/Class/Host/AudioClassHost.h
LUFA/Drivers/USB/Class/Host/CDCClassHost.h
LUFA/Drivers/USB/Class/Host/HIDClassHost.h
LUFA/Drivers/USB/Class/Host/MIDIClassHost.h
LUFA/Drivers/USB/Class/Host/MassStorageClassHost.h
LUFA/Drivers/USB/Class/Host/PrinterClassHost.h
LUFA/Drivers/USB/Class/Host/RNDISClassHost.h
LUFA/Drivers/USB/Class/Host/StillImageClassHost.h

index 5b8f190..28f710d 100644 (file)
@@ -39,6 +39,7 @@
   *   - USB_CONFIG_ATTR_BUSPOWERED constant renamed to USB_CONFIG_ATTR_RESERVED, as this was misnamed (thanks to NXP Semiconductors)
   *   - Reordered board name definition indexes so that a mispelled BOARD compile option will default to BOARD_USER rather than BOARD_USBKEY
   *   - Altered the HID class driver to only try to construct at maximum one packet per USB frame, to reduce CPU usage
+  *   - All USB Class Driver configuration struct values are now non-const, to allow for run-time modifications if required before configuring an instance
   *  - Library Applications:
   *   - Altered the Mass Storage Host LowLevel demo so that SCSI data STALLs from the attached device can be recovered from automatically without
   *     having to reset the Mass Storage interface
index 8a146ef..dad177e 100644 (file)
@@ -77,7 +77,7 @@
                         */
                        typedef struct
                        {
-                               const struct
+                               struct
                                {
                                        uint8_t  StreamingInterfaceNumber; /**< Index of the Audio Streaming interface within the device this
                                                                                                                *   structure controls.
index 6e005ef..998b0a7 100644 (file)
@@ -96,7 +96,7 @@
                         */
                        typedef struct
                        {
-                               const struct
+                               struct
                                {
                                        uint8_t  ControlInterfaceNumber; /**< Interface number of the CDC control interface within the device. */
 
index 95389f3..a6361c6 100644 (file)
@@ -81,7 +81,7 @@
                         */
                        typedef struct
                        {
-                               const struct
+                               struct
                                {
                                        uint8_t  InterfaceNumber; /**< Interface number of the HID interface within the device. */
 
index 791038e..4fe49af 100644 (file)
@@ -77,7 +77,7 @@
                         */
                        typedef struct
                        {
-                               const struct
+                               struct
                                {
                                        uint8_t  StreamingInterfaceNumber; /**< Index of the Audio Streaming interface within the device this structure controls. */
 
@@ -94,7 +94,7 @@
 
                                struct
                                {
-                                       // No state information for this class
+                                       uint8_t RESERVED; // No state information for this class
                                } State; /**< State data for the USB class interface within the device. All elements in this section
                                          *   are reset to their defaults when the interface is enumerated.
                                          */
index e676a97..c2d536c 100644 (file)
@@ -77,7 +77,7 @@
                         */
                        typedef struct
                        {
-                               const struct
+                               struct
                                {
                                        uint8_t  InterfaceNumber; /**< Interface number of the Mass Storage interface within the device. */
 
index b1fd35f..ccd20e3 100644 (file)
@@ -77,7 +77,7 @@
                         */
                        typedef struct
                        {
-                               const struct
+                               struct
                                {
                                        uint8_t  ControlInterfaceNumber; /**< Interface number of the RNDIS control interface within the device. */
 
index b0746fd..cc70589 100644 (file)
@@ -41,6 +41,8 @@ bool AOA_Host_ValidateAccessoryDevice(USB_ClassInfo_AOA_Host_t* const AOAInterfa
                                       const USB_Descriptor_Device_t* const DeviceDescriptor,\r
                                       bool* const NeedModeSwitch)\r
 {\r
+       (void)AOAInterfaceInfo;\r
+\r
        if (DeviceDescriptor->Header.Type != DTYPE_Device)\r
          return false;\r
 \r
index 6894789..d981342 100644 (file)
@@ -83,7 +83,7 @@
                         */\r
                        typedef struct\r
                        {\r
-                               const struct\r
+                               struct\r
                                {\r
                                        uint8_t  DataINPipeNumber; /**< Pipe number of the AOA interface's IN data pipe. */\r
                                        bool     DataINPipeDoubleBank; /**< Indicates if the AOA interface's IN data pipe should use double banking. */\r
index a7f87db..a6e425d 100644 (file)
@@ -77,7 +77,7 @@
                         */
                        typedef struct
                        {
-                               const struct
+                               struct
                                {
                                        uint8_t  DataINPipeNumber; /**< Pipe number of the Audio interface's IN data pipe. If this interface should not
                                                                    *   bind to an IN endpoint, this may be set to 0 to disable audio input streaming for
index 7adcbb5..0beb5b1 100644 (file)
@@ -79,7 +79,7 @@
                         */
                        typedef struct
                        {
-                               const struct
+                               struct
                                {
                                        uint8_t  DataINPipeNumber; /**< Pipe number of the CDC interface's IN data pipe. */
                                        bool     DataINPipeDoubleBank; /**< Indicates if the CDC interface's IN data pipe should use double banking. */
index e5b8cf5..2e88679 100644 (file)
@@ -81,7 +81,7 @@
                         */
                        typedef struct
                        {
-                               const struct
+                               struct
                                {
                                        uint8_t  DataINPipeNumber; /**< Pipe number of the HID interface's IN data pipe. */
                                        bool     DataINPipeDoubleBank; /**< Indicates if the HID interface's IN data pipe should use double banking. */
index 0fd8033..e934dda 100644 (file)
@@ -77,7 +77,7 @@
                         */
                        typedef struct
                        {
-                               const struct
+                               struct
                                {
                                        uint8_t  DataINPipeNumber; /**< Pipe number of the MIDI interface's streaming IN data pipe. */
                                        bool     DataINPipeDoubleBank; /**< Indicates if the MIDI interface's IN data pipe should use double banking. */
index b123ea2..25d7e1e 100644 (file)
@@ -81,7 +81,7 @@
                         */
                        typedef struct
                        {
-                               const struct
+                               struct
                                {
                                        uint8_t  DataINPipeNumber; /**< Pipe number of the Mass Storage interface's IN data pipe. */
                                        bool     DataINPipeDoubleBank; /**< Indicates if the Mass Storage interface's IN data pipe should use double banking. */
index 955d514..4d9baf0 100644 (file)
@@ -77,7 +77,7 @@
                         */
                        typedef struct
                        {
-                               const struct
+                               struct
                                {
                                        uint8_t  DataINPipeNumber; /**< Pipe number of the Printer interface's IN data pipe. */
                                        bool     DataINPipeDoubleBank; /**< Indicates if the Printer interface's IN data pipe should use double banking. */
index 9e119cc..085bde2 100644 (file)
@@ -78,7 +78,7 @@
                         */
                        typedef struct
                        {
-                               const struct
+                               struct
                                {
                                        uint8_t  DataINPipeNumber; /**< Pipe number of the RNDIS interface's IN data pipe. */
                                        bool     DataINPipeDoubleBank; /**< Indicates if the RNDIS interface's IN data pipe should use double banking. */
index f10e8fe..4cda70d 100644 (file)
@@ -81,7 +81,7 @@
                         */
                        typedef struct
                        {
-                               const struct
+                               struct
                                {
                                        uint8_t  DataINPipeNumber; /**< Pipe number of the Still Image interface's IN data pipe. */
                                        bool     DataINPipeDoubleBank; /**< Indicates if the Still Image interface's IN data pipe should use double banking. */