瀏覽代碼

Add BOOTLOADER_SIZE and remove BOOT_SIZE

- define BOOTLOADER_SIZE in config.h instead of Makefile
core
tmk 11 年之前
父節點
當前提交
9cc2a466f7
共有 1 個文件被更改,包括 9 次插入7 次删除
  1. 9
    7
      common/bootloader.c

+ 9
- 7
common/bootloader.c 查看文件

@@ -12,16 +12,18 @@


/* 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
#warn To use bootloader_jump() you need to define BOOTLOADER_SIZE in config.h.
#endif

#define FLASH_SIZE (FLASHEND + 1L)
#define BOOTLOADER_START (FLASH_SIZE - BOOT_SIZE)
#define BOOTLOADER_START (FLASH_SIZE - BOOTLOADER_SIZE)


/*