From e1cf5fc2a617e4b642f2eef6e6c32b751d5e9227 Mon Sep 17 00:00:00 2001 From: NicoHood Date: Mon, 22 Jan 2018 12:06:38 +0100 Subject: Make USE_INTERNAL_SERIAL configureable as makefile define --- LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h | 2 ++ LUFA/Drivers/USB/Core/UC3/Device_UC3.h | 2 ++ LUFA/Drivers/USB/Core/XMEGA/Device_XMEGA.h | 2 ++ 3 files changed, 6 insertions(+) diff --git a/LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h b/LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h index d3c979e48..6b5c3199f 100644 --- a/LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h +++ b/LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h @@ -113,7 +113,9 @@ * On unsupported devices, this will evaluate to \ref NO_DESCRIPTOR and so will force the host to create a pseudo-serial * number for the device. */ + #ifndef USE_INTERNAL_SERIAL #define USE_INTERNAL_SERIAL 0xDC + #endif /** Length of the device's unique internal serial number, in bits, if present on the selected microcontroller * model. diff --git a/LUFA/Drivers/USB/Core/UC3/Device_UC3.h b/LUFA/Drivers/USB/Core/UC3/Device_UC3.h index 2abbfe0ef..dde71665f 100644 --- a/LUFA/Drivers/USB/Core/UC3/Device_UC3.h +++ b/LUFA/Drivers/USB/Core/UC3/Device_UC3.h @@ -102,7 +102,9 @@ * On unsupported devices, this will evaluate to \ref NO_DESCRIPTOR and so will force the host to create a pseudo-serial * number for the device. */ + #ifndef USE_INTERNAL_SERIAL #define USE_INTERNAL_SERIAL 0xDC + #endif /** Length of the device's unique internal serial number, in bits, if present on the selected microcontroller * model. diff --git a/LUFA/Drivers/USB/Core/XMEGA/Device_XMEGA.h b/LUFA/Drivers/USB/Core/XMEGA/Device_XMEGA.h index 6b2ea6031..526fae0c4 100644 --- a/LUFA/Drivers/USB/Core/XMEGA/Device_XMEGA.h +++ b/LUFA/Drivers/USB/Core/XMEGA/Device_XMEGA.h @@ -110,7 +110,9 @@ * On unsupported devices, this will evaluate to \ref NO_DESCRIPTOR and so will force the host to create a pseudo-serial * number for the device. */ + #ifndef USE_INTERNAL_SERIAL #define USE_INTERNAL_SERIAL 0xDC + #endif /** Length of the device's unique internal serial number, in bits, if present on the selected microcontroller * model. -- cgit v1.2.3