# Note that the bootloader size and start address given in AVRStudio is in words and not\r
# bytes, and so will need to be doubled to obtain the byte address needed by AVR-GCC.\r
FLASH_SIZE_KB = 128\r
-BOOT_SECTION_SIZE_KB = 2\r
+BOOT_SECTION_SIZE_KB = 4\r
BOOT_START = 0x$(shell echo "obase=16; ($(FLASH_SIZE_KB) - $(BOOT_SECTION_SIZE_KB)) * 1024" | bc)\r
\r
\r
LUFA_OPTS += -D NO_DEVICE_REMOTE_WAKEUP\r
LUFA_OPTS += -D NO_SOF_EVENTS\r
\r
-#LUFA_OPTS += -D NO_BLOCK_SUPPORT\r
-#LUFA_OPTS += -D NO_EEPROM_BYTE_SUPPORT\r
-#LUFA_OPTS += -D NO_FLASH_BYTE_SUPPORT\r
-#LUFA_OPTS += -D NO_LOCK_BYTE_WRITE_SUPPORT\r
-\r
\r
# Create the LUFA source path variables by including the LUFA root makefile\r
include $(LUFA_PATH)/LUFA/makefile\r
ADEFS += -DBOOT_START_ADDR=$(BOOT_START)UL\r
ADEFS += $(LUFA_OPTS)\r
\r
+\r
# Place -D or -U options here for C++ sources\r
CPPDEFS = -DF_CPU=$(F_CPU)UL\r
CPPDEFS += -DF_CLOCK=$(F_CLOCK)UL\r