Commit | Line | Data |
---|---|---|
44441de8 FS |
1 | # project specific files |
2 | SRC = matrix.c \ | |
3 | led.c | |
4 | ||
5 | ## chip/board settings | |
6 | # - the next two should match the directories in | |
7 | # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES) | |
8 | # - For Teensies, FAMILY = KINETIS and SERIES is either | |
9 | # KL2x (LC) or K20x (3.0,3.1,3.2). | |
10 | # - For Infinity KB, SERIES = K20x | |
11 | MCU_FAMILY = KINETIS | |
12 | MCU_SERIES = K20x | |
13 | ||
14 | # Linker script to use | |
15 | # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/ | |
16 | # or <this_dir>/ld/ | |
17 | # - NOTE: a custom ld script is needed for EEPROM on Teensy LC | |
18 | # - LDSCRIPT = | |
19 | # - MKL26Z64 for Teensy LC | |
20 | # - MK20DX128 for Teensy 3.0 | |
21 | # - MK20DX256 for Teensy 3.1 and 3.2 | |
22 | # - MK20DX128BLDR4 for Infinity with Kiibohd bootloader | |
23 | MCU_LDSCRIPT = MK20DX128BLDR4 | |
24 | ||
25 | # Startup code to use | |
26 | # - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/ | |
27 | # - STARTUP = | |
28 | # - kl2x for Teensy LC | |
29 | # - k20x5 for Teensy 3.0 and Infinity KB | |
30 | # - k20x7 for Teensy 3.1 and 3.2 | |
31 | MCU_STARTUP = k20x5 | |
32 | ||
33 | # Board: it should exist either in <chibios>/os/hal/boards/ | |
34 | # or <this_dir>/boards | |
35 | # - BOARD = | |
36 | # - PJRC_TEENSY_LC for Teensy LC | |
37 | # - PJRC_TEENSY_3 for Teensy 3.0 | |
38 | # - PJRC_TEENSY_3_1 for Teensy 3.1 or 3.2 | |
39 | # - MCHCK_K20 for Infinity KB | |
40 | BOARD = MCHCK_K20 | |
41 | ||
42 | # Cortex version | |
43 | # Teensy LC is cortex-m0; Teensy 3.x are cortex-m4 | |
44 | MCU = cortex-m4 | |
45 | ||
46 | # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7 | |
47 | # I.e. 6 for Teensy LC; 7 for Teensy 3.x | |
48 | ARMV = 7 | |
49 | ||
50 | # Vector table for application | |
51 | # 0x00000000-0x00001000 area is occupied by bootlaoder.*/ | |
52 | # The CORTEX_VTOR... is needed only for MCHCK/Infinity KB | |
53 | OPT_DEFS = -DCORTEX_VTOR_INIT=0x00001000 | |
54 | ||
55 | # Build Options | |
56 | # comment out to disable the options. | |
57 | # | |
58 | BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration | |
59 | ## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.) | |
60 | MOUSEKEY_ENABLE ?= yes # Mouse keys | |
61 | EXTRAKEY_ENABLE ?= yes # Audio control and System control | |
62 | CONSOLE_ENABLE ?= yes # Console for debug | |
63 | COMMAND_ENABLE ?= yes # Commands for debug and configuration | |
64 | SLEEP_LED_ENABLE ?= yes # Breathing sleep LED during USB suspend | |
65 | NKRO_ENABLE ?= yes # USB Nkey Rollover | |
66 | CUSTOM_MATRIX ?= yes # Custom matrix file |