Reduce the amount of inlining of core Endpoint functions for XMEGA, to reduce the...
[pub/USBasp.git] / Bootloaders / CDC / BootloaderCDC.h
index b5d5e0b..49fc674 100644 (file)
                #include <LUFA/Drivers/USB/USB.h>
                #include <LUFA/Drivers/Board/LEDs.h>
 
+       /* Preprocessor Checks: */
+               #if !defined(__OPTIMIZE_SIZE__)
+                       #error This bootloader requires that it be optimize for size, not speed, to fit into the target device. Change optimization settings and try again.
+               #endif
+
        /* Macros: */
                /** Version major of the CDC bootloader. */
                #define BOOTLOADER_VERSION_MAJOR     0x01