# <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES) | # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES) | ||||
# - For Teensies, FAMILY = KINETIS and SERIES is either | # - For Teensies, FAMILY = KINETIS and SERIES is either | ||||
# KL2x (LC) or K20x (3.0,3.1,3.2). | # KL2x (LC) or K20x (3.0,3.1,3.2). | ||||
# - For Infinity KB, SERIES = K20x | |||||
MCU_FAMILY = KINETIS | MCU_FAMILY = KINETIS | ||||
MCU_SERIES = K20x | MCU_SERIES = K20x | ||||
# - MKL26Z64 for Teensy LC | # - MKL26Z64 for Teensy LC | ||||
# - MK20DX128 for Teensy 3.0 | # - MK20DX128 for Teensy 3.0 | ||||
# - MK20DX256 for Teensy 3.1 and 3.2 | # - MK20DX256 for Teensy 3.1 and 3.2 | ||||
#MCU_LDSCRIPT = MK20DX128 | |||||
# - MK20DX128BLDR4 for Infinity with Kiibohd bootloader | |||||
MCU_LDSCRIPT = MK20DX128BLDR4 | MCU_LDSCRIPT = MK20DX128BLDR4 | ||||
# Startup code to use | # Startup code to use | ||||
# - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/ | # - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/ | ||||
# - STARTUP = | # - STARTUP = | ||||
# - kl2x for Teensy LC | # - kl2x for Teensy LC | ||||
# - k20x5 for Teensy 3.0 | |||||
# - k20x5 for Teensy 3.0 and Infinity KB | |||||
# - k20x7 for Teensy 3.1 and 3.2 | # - k20x7 for Teensy 3.1 and 3.2 | ||||
MCU_STARTUP = k20x5 | MCU_STARTUP = k20x5 | ||||
# - PJRC_TEENSY_LC for Teensy LC | # - PJRC_TEENSY_LC for Teensy LC | ||||
# - PJRC_TEENSY_3 for Teensy 3.0 | # - PJRC_TEENSY_3 for Teensy 3.0 | ||||
# - PJRC_TEENSY_3_1 for Teensy 3.1 or 3.2 | # - PJRC_TEENSY_3_1 for Teensy 3.1 or 3.2 | ||||
# - MCHCK_K20 for Infinity KB | |||||
BOARD = MCHCK_K20 | BOARD = MCHCK_K20 | ||||
# Cortex version | # Cortex version | ||||
# Vector table for application | # Vector table for application | ||||
# 0x00000000-0x00001000 area is occupied by bootlaoder.*/ | # 0x00000000-0x00001000 area is occupied by bootlaoder.*/ | ||||
# The CORTEX_VTOR... is needed only for MCHCK/Infinity KB | |||||
OPT_DEFS = -DCORTEX_VTOR_INIT=0x00001000 | OPT_DEFS = -DCORTEX_VTOR_INIT=0x00001000 | ||||
# Build Options | # Build Options | ||||
# comment out to disable the options. | # comment out to disable the options. | ||||
# | # |
/* at most 32 characters or the ugly hack in usb_main.c borks */ | /* at most 32 characters or the ugly hack in usb_main.c borks */ | ||||
#define MANUFACTURER "TMK" | #define MANUFACTURER "TMK" | ||||
#define USBSTR_MANUFACTURER 'T', '\x00', 'M', '\x00', 'K', '\x00', ' ', '\x00', '\xc6', '\x00' | #define USBSTR_MANUFACTURER 'T', '\x00', 'M', '\x00', 'K', '\x00', ' ', '\x00', '\xc6', '\x00' | ||||
#define PRODUCT "ChibiOS TMK test" | |||||
#define USBSTR_PRODUCT 'C', '\x00', 'h', '\x00', 'i', '\x00', 'b', '\x00', 'i', '\x00', 'O', '\x00', 'S', '\x00', ' ', '\x00', 'T', '\x00', 'M', '\x00', 'K', '\x00', ' ', '\x00', 't', '\x00', 'e', '\x00', 's', '\x00', 't', '\x00' | |||||
#define DESCRIPTION "TMK keyboard firmware over ChibiOS" | |||||
#define PRODUCT "Infinity keyboard/TMK" | |||||
#define USBSTR_PRODUCT 'I', '\x00', 'n', '\x00', 'f', '\x00', 'i', '\x00', 'n', '\x00', 'i', '\x00', 't', '\x00', 'y', '\x00', ' ', '\x00', 'k', '\x00', 'e', '\x00', 'y', '\x00', 'b', '\x00', 'o', '\x00', 'a', '\x00', 'r', '\x00', 'd', '\x00', '/', '\x00', 'T', '\x00', 'M', '\x00', 'K', '\x00' | |||||
/* key matrix size */ | /* key matrix size */ | ||||
#define MATRIX_ROWS 9 | #define MATRIX_ROWS 9 |