diff options
| author | tmk <nobody@nowhere> | 2013-03-10 15:36:07 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2013-03-10 17:53:29 +0900 |
| commit | 51050875b7f1dd5216ba46298f95cf3030a36211 (patch) | |
| tree | 85c0c37023033f851c8a18e5b407b4845537c029 /common/bootloader.c | |
| parent | f55c677ba46a8243f077195ef4f39cde1babf560 (diff) | |
| download | qmk_firmware-51050875b7f1dd5216ba46298f95cf3030a36211.tar.gz qmk_firmware-51050875b7f1dd5216ba46298f95cf3030a36211.zip | |
Add BOOTLOADER_SIZE and remove BOOT_SIZE
- define BOOTLOADER_SIZE in config.h instead of Makefile
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 | /* |
