aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/LowLevel/DevChapter9.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-06-21 09:22:31 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-06-21 09:22:31 +0000
commit730624f745648cbd32bec7da64833cb2aadd44ea (patch)
tree1fc67eab7c45f67d3005d3dfdb614629a47c3567 /LUFA/Drivers/USB/LowLevel/DevChapter9.h
parent9d506553aa750264ff6045ff9180397993cb37c0 (diff)
downloadlufa-730624f745648cbd32bec7da64833cb2aadd44ea.tar.gz
lufa-730624f745648cbd32bec7da64833cb2aadd44ea.tar.bz2
lufa-730624f745648cbd32bec7da64833cb2aadd44ea.zip
Added new USE_INTERNAL_SERIAL define for using the unique serial numbers in some AVR models as the USB device's serial number, added NO_INTERNAL_SERIAL compile time option to turn off new serial number reading code. Updated Mass Storage and CDC based demos to use the new device serial number if the device it is compiled for supports it.
Diffstat (limited to 'LUFA/Drivers/USB/LowLevel/DevChapter9.h')
-rw-r--r--LUFA/Drivers/USB/LowLevel/DevChapter9.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/LUFA/Drivers/USB/LowLevel/DevChapter9.h b/LUFA/Drivers/USB/LowLevel/DevChapter9.h
index 65fa0418c..505256e68 100644
--- a/LUFA/Drivers/USB/LowLevel/DevChapter9.h
+++ b/LUFA/Drivers/USB/LowLevel/DevChapter9.h
@@ -45,21 +45,12 @@
#include "../HighLevel/USBTask.h"
#include "LowLevel.h"
- /* Preprocessor Checks: */
- #if defined(USE_INTERNAL_SERIAL) && !(defined(USB_SERIES_6_AVR) || defined(USB_SERIES_7_AVR))
- #error USE_INTERNAL_SERIAL invalid, the selected AVR model does not contain unique serial bytes.
- #endif
-
- #if defined(USE_INTERNAL_SERIAL) && (USE_INTERNAL_SERIAL <= 1)
- #error USE_INTERNAL_SERIAL must be defined to the string descriptor index chosen for the serial number descriptor.
- #endif
-
/* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus)
extern "C" {
#endif
- /* Public Interface - May be used in end-application: */
+ /* Public Interface - May be used in end-application: */
/* Global Variables: */
/** Indicates the currently set configuration number of the device. USB devices may have several
* different configurations which the host can select between; this indicates the currently selected