Add BOOTLOADER_SIZE and remove BOOT_SIZE
- define BOOTLOADER_SIZE in config.h instead of Makefile
This commit is contained in:
parent
f7a1a8f80f
commit
9cc2a466f7
@ -12,16 +12,18 @@
|
|||||||
|
|
||||||
|
|
||||||
/* Boot Section Size in *BYTEs*
|
/* Boot Section Size in *BYTEs*
|
||||||
* Teensy halfKay 512
|
* Teensy halfKay 512
|
||||||
* Teensy++ halfKay 1024
|
* Teensy++ halfKay 1024
|
||||||
* Atmel DFU loader 4096
|
* Atmel DFU loader 4096
|
||||||
* LUFA bootloader 4096
|
* LUFA bootloader 4096
|
||||||
|
* USBaspLoader 2048
|
||||||
*/
|
*/
|
||||||
#ifndef BOOT_SIZE
|
#ifndef BOOTLOADER_SIZE
|
||||||
#define BOOT_SIZE 512
|
#warn To use bootloader_jump() you need to define BOOTLOADER_SIZE in config.h.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define FLASH_SIZE (FLASHEND + 1L)
|
#define FLASH_SIZE (FLASHEND + 1L)
|
||||||
#define BOOTLOADER_START (FLASH_SIZE - BOOT_SIZE)
|
#define BOOTLOADER_START (FLASH_SIZE - BOOTLOADER_SIZE)
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user