diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2009-04-07 04:19:57 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2009-04-07 04:19:57 +0000 |
| commit | 2b68d04db032d41665a5232d252f35e5681258a1 (patch) | |
| tree | 0ae404bad74a807ee2d3122f0410f414f38c5df9 /Bootloaders/DFU/BootloaderDFU.h | |
| parent | 7cc2b372da77f1b03e373c2b0f28ed10ff659f9e (diff) | |
Added preprocessor checks and documentation to the bootloaders giving information about missing SIGNATURE_x defines due to outdated avr-libc versions.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@497 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Bootloaders/DFU/BootloaderDFU.h')
| -rw-r--r-- | Bootloaders/DFU/BootloaderDFU.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Bootloaders/DFU/BootloaderDFU.h b/Bootloaders/DFU/BootloaderDFU.h index d0a82544..e996f2b7 100644 --- a/Bootloaders/DFU/BootloaderDFU.h +++ b/Bootloaders/DFU/BootloaderDFU.h @@ -48,7 +48,12 @@ #include "Descriptors.h"
#include <LUFA/Drivers/USB/USB.h> // USB Functionality
-
+
+ /* Preprocessor Checks: */
+ #if !defined(SIGNATURE_0) || !defined(SIGNATURE_1) || !defined(SIGNATURE_2)
+ #error Device signature byte constants are not defined due to outdated avr-libc version. See demo documentation.
+ #endif
+
/* Macros: */
/** Configuration define. Define this token to true to case the bootloader to reject all memory commands
* until a memory erase has been performed. When used in conjunction with the lockbits of the AVR, this
|
