From 4bb59f9673bdac23109575a1979640c81cbc2058 Mon Sep 17 00:00:00 2001
From: Dean Camera <dean@fourwalledcubicle.com>
Date: Wed, 25 Mar 2009 22:43:00 +0000
Subject: [PATCH] Fixed documentation typoes and preprocessor checks relating
 to misspellings of the USE_RAM_DESCRIPTORS token (thanks to Ian Gregg).

---
 LUFA/ChangeLog.txt                          | 1 +
 LUFA/Drivers/USB/HighLevel/StdDescriptors.h | 2 +-
 LUFA/Drivers/USB/LowLevel/USBMode.h         | 4 ++--
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/LUFA/ChangeLog.txt b/LUFA/ChangeLog.txt
index f30867e89..844720834 100644
--- a/LUFA/ChangeLog.txt
+++ b/LUFA/ChangeLog.txt
@@ -42,6 +42,7 @@
   *  - Keyboard and Mouse host demos (normal and data interrupt driven) combined into unified keyboard and mouse demos
   *  - Removed AVRISP_Programmer project due to code quality concerns
   *  - Fixed CDC demo not sending an empty packet after each transfer to prevent the host from buffering incomming data
+  *  - Fixed documentation typoes and preprocessor checks relating to misspellings of the USE_RAM_DESCRIPTORS token (thanks to Ian Gregg)
   *
   *  \section Sec_ChangeLog090209 Version 090209
   *
diff --git a/LUFA/Drivers/USB/HighLevel/StdDescriptors.h b/LUFA/Drivers/USB/HighLevel/StdDescriptors.h
index d9075cc75..3090d8c24 100644
--- a/LUFA/Drivers/USB/HighLevel/StdDescriptors.h
+++ b/LUFA/Drivers/USB/HighLevel/StdDescriptors.h
@@ -497,7 +497,7 @@
 			 *
 			 *  \note By default, the library expects all descriptors to be located in flash memory via the PROGMEM attribute.
 			 *        If descriptors should be located in RAM or EEPROM instead (to speed up access in the case of RAM, or to
-			 *        allow the descriptors to be changed dynamically at runtime) either the USE_SRAM_DESCRIPTORS or the 
+			 *        allow the descriptors to be changed dynamically at runtime) either the USE_RAM_DESCRIPTORS or the 
 			 *        USE_EEPROM_DESCRIPTORS tokens may be defined in the project makefile and passed to the compiler by the -D
 			 *        switch.
 			 *
diff --git a/LUFA/Drivers/USB/LowLevel/USBMode.h b/LUFA/Drivers/USB/LowLevel/USBMode.h
index f0fbf68df..138af9ed0 100644
--- a/LUFA/Drivers/USB/LowLevel/USBMode.h
+++ b/LUFA/Drivers/USB/LowLevel/USBMode.h
@@ -65,8 +65,8 @@
 				#error USB_HOST_ONLY and USB_DEVICE_ONLY are mutually exclusive.
 			#endif
 
-			#if (defined(USB_RAM_DESCRIPTORS) && defined(USE_EEPROM_DESCRIPTORS))
-				#error USB_RAM_DESCRIPTORS and USE_EEPROM_DESCRIPTORS are mutually exclusive.
+			#if (defined(USE_RAM_DESCRIPTORS) && defined(USE_EEPROM_DESCRIPTORS))
+				#error USE_RAM_DESCRIPTORS and USE_EEPROM_DESCRIPTORS are mutually exclusive.
 			#endif
 
 			#if defined(USE_STATIC_OPTIONS)
-- 
GitLab