diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2018-02-18 17:49:50 +1100 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2018-02-18 17:49:50 +1100 |
commit | 417d34385c9568f04e4cbbf5cc2444981815fbe0 (patch) | |
tree | 84f346b4efdae17d6645708f07bce14dafe45277 /LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h | |
parent | b1e59da00b424e13f9c1c5abeec2b3cbe4227719 (diff) | |
download | lufa-417d34385c9568f04e4cbbf5cc2444981815fbe0.tar.gz lufa-417d34385c9568f04e4cbbf5cc2444981815fbe0.tar.bz2 lufa-417d34385c9568f04e4cbbf5cc2444981815fbe0.zip |
Ensure USE_INTERNAL_SERIAL is set to NO_DESCRIPTOR if internal serial is disabled.
Diffstat (limited to 'LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h')
-rw-r--r-- | LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h b/LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h index 6b5c3199f..43a3d6a72 100644 --- a/LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h +++ b/LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h @@ -114,23 +114,24 @@ * number for the device. */ #ifndef USE_INTERNAL_SERIAL - #define USE_INTERNAL_SERIAL 0xDC + #define USE_INTERNAL_SERIAL 0xDC #endif /** Length of the device's unique internal serial number, in bits, if present on the selected microcontroller * model. */ - #define INTERNAL_SERIAL_LENGTH_BITS 80 + #define INTERNAL_SERIAL_LENGTH_BITS 80 /** Start address of the internal serial number, in the appropriate address space, if present on the selected microcontroller * model. */ - #define INTERNAL_SERIAL_START_ADDRESS 0x0E + #define INTERNAL_SERIAL_START_ADDRESS 0x0E #else - #define USE_INTERNAL_SERIAL NO_DESCRIPTOR + #undef USE_INTERNAL_SERIAL + #define USE_INTERNAL_SERIAL NO_DESCRIPTOR - #define INTERNAL_SERIAL_LENGTH_BITS 0 - #define INTERNAL_SERIAL_START_ADDRESS 0 + #define INTERNAL_SERIAL_LENGTH_BITS 0 + #define INTERNAL_SERIAL_START_ADDRESS 0 #endif /* Function Prototypes: */ |