- define BOOTLOADER_SIZE in config.h instead of Makefiletags/v1.9
/* Boot Section Size in *BYTEs* | /* 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 | #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) | |||||
/* | /* |
#PS2_MOUSE_ENABLE = yes # PS/2 mouse(TrackPoint) support | #PS2_MOUSE_ENABLE = yes # PS/2 mouse(TrackPoint) support | ||||
# Boot Section Size in bytes | |||||
# Teensy halfKay 512 | |||||
# Atmel DFU loader 4096 | |||||
# LUFA bootloader 4096 | |||||
OPT_DEFS += -DBOOT_SIZE=4096 | |||||
# Search Path | # Search Path | ||||
VPATH += $(TARGET_DIR) | VPATH += $(TARGET_DIR) | ||||
VPATH += $(TOP_DIR) | VPATH += $(TOP_DIR) |
#define DEVICE_VER 0x0001 | #define DEVICE_VER 0x0001 | ||||
#define MANUFACTURER geekhack | #define MANUFACTURER geekhack | ||||
#define PRODUCT GH60 | #define PRODUCT GH60 | ||||
/* message strings */ | /* message strings */ | ||||
#define DESCRIPTION t.m.k. keyboard firmware for GH60 | #define DESCRIPTION t.m.k. keyboard firmware for GH60 | ||||
/* Boot Section Size in *BYTEs* | |||||
* Teensy halfKay 512 | |||||
* Teensy++ halfKay 1024 | |||||
* Atmel DFU loader 4096 | |||||
* LUFA bootloader 4096 | |||||
* USBaspLoader 2048 | |||||
*/ | |||||
#define BOOTLOADER_SIZE 4096 | |||||
/* matrix size */ | /* matrix size */ | ||||
#define MATRIX_ROWS 5 | #define MATRIX_ROWS 5 | ||||
#define MATRIX_COLS 14 | #define MATRIX_COLS 14 |
#NKRO_ENABLE = yes # USB Nkey Rollover | #NKRO_ENABLE = yes # USB Nkey Rollover | ||||
# Boot Section Size in *BYTEs* | |||||
# Teensy halfKay 512 | |||||
# Teensy++ halfKay 1024 | |||||
# Atmel DFU loader 4096 | |||||
# LUFA bootloader 4096 | |||||
# USBaspLoader 2048 | |||||
OPT_DEFS += -DBOOT_SIZE=2048 | |||||
#---------------- Programming Options -------------------------- | #---------------- Programming Options -------------------------- | ||||
AVRDUDE = avrdude | AVRDUDE = avrdude |
#PS2_MOUSE_ENABLE = yes # PS/2 mouse(TrackPoint) support | #PS2_MOUSE_ENABLE = yes # PS/2 mouse(TrackPoint) support | ||||
# Boot Section Size in *BYTEs* | |||||
# Teensy halfKay 512 | |||||
# Teensy++ halfKay 1024 | |||||
# Atmel DFU loader 4096 | |||||
# LUFA bootloader 4096 | |||||
OPT_DEFS += -DBOOT_SIZE=1024 | |||||
# Search Path | # Search Path | ||||
VPATH += $(TARGET_DIR) | VPATH += $(TARGET_DIR) | ||||
VPATH += $(TOP_DIR) | VPATH += $(TOP_DIR) |
#define DEVICE_VER 0x0103 | #define DEVICE_VER 0x0103 | ||||
#define MANUFACTURER t.m.k. | #define MANUFACTURER t.m.k. | ||||
#define PRODUCT HHKB mod | #define PRODUCT HHKB mod | ||||
#define DESCRIPTION t.m.k. keyboard firmware for HHKB mod | |||||
#define DESCRIPTION t.m.k. keyboard firmware for HHKB mod | |||||
/* Boot Section Size in *BYTEs* | |||||
* Teensy halfKay 512 | |||||
* Teensy++ halfKay 1024 | |||||
* Atmel DFU loader 4096 | |||||
* LUFA bootloader 4096 | |||||
* USBaspLoader 2048 | |||||
*/ | |||||
#define BOOTLOADER_SIZE 1024 | |||||
/* matrix size */ | /* matrix size */ |
#define DESCRIPTION t.m.k. keyboard firmware for HHKB mod | #define DESCRIPTION t.m.k. keyboard firmware for HHKB mod | ||||
/* Boot Section Size in *BYTEs* | |||||
* Teensy halfKay 512 | |||||
* Teensy++ halfKay 1024 | |||||
* Atmel DFU loader 4096 | |||||
* LUFA bootloader 4096 | |||||
* USBaspLoader 2048 | |||||
*/ | |||||
#define BOOTLOADER_SIZE 2048 | |||||
/* matrix size */ | /* matrix size */ | ||||
#define MATRIX_ROWS 8 | #define MATRIX_ROWS 8 | ||||
#define MATRIX_COLS 8 | #define MATRIX_COLS 8 |