diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-06-20 11:43:26 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-06-20 11:43:26 +0000 |
commit | 00d0883507efdc17688abafa75e81bf62f83d777 (patch) | |
tree | efdf229555604f3c092557ac7ce638cf838dbdb2 /LUFA/ManPages/CompileTimeTokens.txt | |
parent | 35bdada24b49c4dd1900a78a1595077b99814cf9 (diff) | |
download | lufa-00d0883507efdc17688abafa75e81bf62f83d777.tar.gz lufa-00d0883507efdc17688abafa75e81bf62f83d777.tar.bz2 lufa-00d0883507efdc17688abafa75e81bf62f83d777.zip |
Added USE_INTERNAL_SERIAL compile time option to automatically read out the internal unique serial number as the device's serial number descriptor on supported AVR models.
Diffstat (limited to 'LUFA/ManPages/CompileTimeTokens.txt')
-rw-r--r-- | LUFA/ManPages/CompileTimeTokens.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/LUFA/ManPages/CompileTimeTokens.txt b/LUFA/ManPages/CompileTimeTokens.txt index d8a7cf74a..e1f248d8f 100644 --- a/LUFA/ManPages/CompileTimeTokens.txt +++ b/LUFA/ManPages/CompileTimeTokens.txt @@ -80,6 +80,14 @@ * compatibility. If this token is defined, the structure element names are switched to the LUFA-specific but more descriptive
* names documented in the StdDescriptors.h source file.
*
+ * <b>USE_INTERNAL_SERIAL</b> - ( \ref Group_Descriptors ) \n
+ * Some AVR models contain a unique 20-digit serial number which can be used as the device serial number, while in device mode. This
+ * allows the host to uniquely identify the device regardless of if it is moved between USB ports on the same computer, allowing
+ * allocated resources (such as drivers, COM Port number allocations) to be preserved. To make the library use this value for the
+ * device's serial number, define this token in the project makefile, set it to a unique string descriptor index (i.e. one not used
+ * elsewhere in the device for a string descriptor) and set the Device Descriptor's serial number descriptor index entry to the
+ * USE_INTERNAL_SERIAL value.
+ *
* <b>FIXED_CONTROL_ENDPOINT_SIZE</b> - ( \ref Group_EndpointManagement ) \n
* By default, the library determines the size of the control endpoint (when in device mode) by reading the device descriptor.
* Normally this reduces the amount of configuration required for the library, allows the value to change dynamically (if
|