From 1dcc1fe5275b78ef39611d0112c0f17603a1dc39 Mon Sep 17 00:00:00 2001
From: Dean Camera <dean@fourwalledcubicle.com>
Date: Mon, 20 Feb 2012 22:07:25 +0000
Subject: [PATCH] Update the Android Accessory Host ClassDriver demo to use the
 updated class configuration API.

Enable -Wcast-align warning for the UC3 architecture in the ModuleTest build test now that the test passes with it.

Minor documentation improvements.
---
 BuildTests/ModuleTest/makefile.uc3                   |  2 +-
 BuildTests/ModuleTest/makefile.xmega                 |  1 +
 .../AndroidAccessoryHost/AndroidAccessoryHost.c      | 12 ++++++------
 LUFA/DoxygenPages/LUFAPoweredProjects.txt            |  1 +
 4 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/BuildTests/ModuleTest/makefile.uc3 b/BuildTests/ModuleTest/makefile.uc3
index fe2683234..ba3ec10ba 100644
--- a/BuildTests/ModuleTest/makefile.uc3
+++ b/BuildTests/ModuleTest/makefile.uc3
@@ -200,7 +200,7 @@ CFLAGS += -Wswitch-enum
 CFLAGS += -Wunused
 CFLAGS += -Wundef
 CFLAGS += -Wpointer-arith
-#CFLAGS += -Wcast-align
+CFLAGS += -Wcast-align
 CFLAGS += -Wwrite-strings
 CFLAGS += -Wlogical-op
 CFLAGS += -Wmissing-parameter-type
diff --git a/BuildTests/ModuleTest/makefile.xmega b/BuildTests/ModuleTest/makefile.xmega
index e666704e3..054c6c852 100644
--- a/BuildTests/ModuleTest/makefile.xmega
+++ b/BuildTests/ModuleTest/makefile.xmega
@@ -209,6 +209,7 @@ CFLAGS += -fno-inline-small-functions
 CFLAGS += -fpack-struct
 CFLAGS += -fshort-enums
 CFLAGS += -fno-strict-aliasing
+CFLAGS += -fno-split-wide-types
 CFLAGS += -Wa,-adhlns=$(<:%.c=$(OBJDIR)/%.lst)
 CFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS))
 CFLAGS += $(CSTANDARD)
diff --git a/Demos/Host/ClassDriver/AndroidAccessoryHost/AndroidAccessoryHost.c b/Demos/Host/ClassDriver/AndroidAccessoryHost/AndroidAccessoryHost.c
index b4df532c5..d0737acd7 100644
--- a/Demos/Host/ClassDriver/AndroidAccessoryHost/AndroidAccessoryHost.c
+++ b/Demos/Host/ClassDriver/AndroidAccessoryHost/AndroidAccessoryHost.c
@@ -52,12 +52,12 @@ USB_ClassInfo_AOA_Host_t AndroidDevice_AOA_Interface =
 				
 				.PropertyStrings =
 					{
-						.Manufacturer       = "Dean Camera",
-						.Model              = "LUFA Android Demo",
-						.Description        = "LUFA Android Demo",
-						.Version            = "1.0",
-						.URI                = "http://www.lufa-lib.org",
-						.Serial             = "0000000012345678",
+						[AOA_STRING_Manufacturer] = "Dean Camera",
+						[AOA_STRING_Model]        = "LUFA Android Demo",
+						[AOA_STRING_Description]  = "LUFA Android Demo",
+						[AOA_STRING_Version]      = "1.0",
+						[AOA_STRING_URI]          = "http://www.lufa-lib.org",
+						[AOA_STRING_Serial]       = "0000000012345678",
 					},
 			},
 	};
diff --git a/LUFA/DoxygenPages/LUFAPoweredProjects.txt b/LUFA/DoxygenPages/LUFAPoweredProjects.txt
index d15ade2b2..cbac5af79 100644
--- a/LUFA/DoxygenPages/LUFAPoweredProjects.txt
+++ b/LUFA/DoxygenPages/LUFAPoweredProjects.txt
@@ -63,6 +63,7 @@
  *  - Hiduino, a USB-MIDI replacement firmware for the Arduino Uno: http://code.google.com/p/hiduino/
  *  - Ikea RGB LED USB modification: http://slashhome.se/p/projects/id/ikea_dioder_usb/#project
  *  - IR Remote to Keyboard decoder: http://netzhansa.blogspot.com/2010/04/our-living-room-hi-fi-setup-needs-mp3.html
+ *  - Jukebox panic button: http://thinkl33t.co.uk/the-panic-button
  *  - LED Panel controller: http://projects.peterpolidoro.net/caltech/panelscontroller/panelscontroller.htm
  *  - Linux Secure Storage Dongle: http://github.com/TomMD/teensy
  *  - LUFA powered DDR dance mat (French): http://logicien-parfait.fr/dokuwiki/doku.php?id=projet:ddr_repair
-- 
GitLab