X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=common%2Fbootloader.c;h=cda295b1811e92f90baea342084b37a07139bcc1;hb=48662ace8b6d8aca5ab4a5de0a0a40781a95478a;hp=023220414bb6dedf3890e88b608e1fee8a373164;hpb=f55c677ba46a8243f077195ef4f39cde1babf560;p=max%2Ftmk_keyboard.git diff --git a/common/bootloader.c b/common/bootloader.c index 02322041..cda295b1 100644 --- a/common/bootloader.c +++ b/common/bootloader.c @@ -12,16 +12,19 @@ /* Boot Section Size in *BYTEs* - * Teensy halfKay 512 - * Teensy++ halfKay 1024 - * Atmel DFU loader 4096 - * LUFA bootloader 4096 + * Teensy halfKay 512 + * Teensy++ halfKay 1024 + * Atmel DFU loader 4096 + * LUFA bootloader 4096 + * USBaspLoader 2048 */ -#ifndef BOOT_SIZE -#define BOOT_SIZE 512 +#ifndef BOOTLOADER_SIZE +#warning To use bootloader_jump() you need to define BOOTLOADER_SIZE in config.h. +#define BOOTLOADER_SIZE 4096 #endif + #define FLASH_SIZE (FLASHEND + 1L) -#define BOOTLOADER_START (FLASH_SIZE - BOOT_SIZE) +#define BOOTLOADER_START (FLASH_SIZE - BOOTLOADER_SIZE) /* @@ -68,7 +71,8 @@ void bootloader_jump_after_watchdog_reset(void) MCUSR &= ~(1<