diff options
Diffstat (limited to 'common/bootloader.c')
| -rw-r--r-- | common/bootloader.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/common/bootloader.c b/common/bootloader.c index 023220414..f9802d36c 100644 --- a/common/bootloader.c +++ b/common/bootloader.c | |||
| @@ -12,16 +12,18 @@ | |||
| 12 | 12 | ||
| 13 | 13 | ||
| 14 | /* Boot Section Size in *BYTEs* | 14 | /* Boot Section Size in *BYTEs* |
| 15 | * Teensy halfKay 512 | 15 | * Teensy halfKay 512 |
| 16 | * Teensy++ halfKay 1024 | 16 | * Teensy++ halfKay 1024 |
| 17 | * Atmel DFU loader 4096 | 17 | * Atmel DFU loader 4096 |
| 18 | * LUFA bootloader 4096 | 18 | * LUFA bootloader 4096 |
| 19 | * USBaspLoader 2048 | ||
| 19 | */ | 20 | */ |
| 20 | #ifndef BOOT_SIZE | 21 | #ifndef BOOTLOADER_SIZE |
| 21 | #define BOOT_SIZE 512 | 22 | #warn To use bootloader_jump() you need to define BOOTLOADER_SIZE in config.h. |
| 22 | #endif | 23 | #endif |
| 24 | |||
| 23 | #define FLASH_SIZE (FLASHEND + 1L) | 25 | #define FLASH_SIZE (FLASHEND + 1L) |
| 24 | #define BOOTLOADER_START (FLASH_SIZE - BOOT_SIZE) | 26 | #define BOOTLOADER_START (FLASH_SIZE - BOOTLOADER_SIZE) |
| 25 | 27 | ||
| 26 | 28 | ||
| 27 | /* | 29 | /* |
