Added preprocessor checks and documentation to the bootloaders giving information...
[pub/lufa.git] / Bootloaders / DFU / BootloaderDFU.h
index d0a8254..e996f2b 100644 (file)
                #include "Descriptors.h"\r
                \r
                #include <LUFA/Drivers/USB/USB.h>                // USB Functionality\r
-               \r
+       \r
+       /* Preprocessor Checks: */\r
+               #if !defined(SIGNATURE_0) || !defined(SIGNATURE_1) || !defined(SIGNATURE_2)\r
+                       #error Device signature byte constants are not defined due to outdated avr-libc version. See demo documentation.\r
+               #endif\r
+       \r
        /* Macros: */\r
                /** Configuration define. Define this token to true to case the bootloader to reject all memory commands\r
                 *  until a memory erase has been performed. When used in conjunction with the lockbits of the AVR, this\r