]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/handwired/onekey/teensy_lc/rules.mk
[Keyboard] Refactor of onekey to support multiple development boards (#6017)
[qmk_firmware.git] / keyboards / handwired / onekey / teensy_lc / rules.mk
1 ## chip/board settings
2 # - the next two should match the directories in
3 #   <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
4 # - For Teensies, FAMILY = KINETIS and SERIES is either
5 #   KL2x (LC) or K20x (3.0,3.1,3.2).
6 MCU_FAMILY = KINETIS
7 MCU_SERIES = KL2x
8
9 # Linker script to use
10 # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
11 #   or <this_dir>/ld/
12 # - NOTE: a custom ld script is needed for EEPROM on Teensy LC
13 # - LDSCRIPT =
14 #   - MKL26Z64 for Teensy LC
15 #   - MK20DX128 for Teensy 3.0
16 #   - MK20DX256 for Teensy 3.1 and 3.2
17 MCU_LDSCRIPT = MKL26Z64
18
19 # Startup code to use
20 #  - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/
21 # - STARTUP =
22 #   - kl2x for Teensy LC
23 #   - k20x5 for Teensy 3.0
24 #   - k20x7 for Teensy 3.1 and 3.2
25 MCU_STARTUP = kl2x
26
27 # Board: it should exist either in <chibios>/os/hal/boards/
28 #  or <this_dir>/boards
29 # - BOARD =
30 #   - PJRC_TEENSY_LC for Teensy LC
31 #   - PJRC_TEENSY_3 for Teensy 3.0
32 #   - PJRC_TEENSY_3_1 for Teensy 3.1 or 3.2
33 BOARD = PJRC_TEENSY_LC
34
35 # Cortex version
36 # Teensy LC is cortex-m0plus; Teensy 3.x are cortex-m4
37 MCU  = cortex-m0plus
38
39 # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
40 # I.e. 6 for Teensy LC; 7 for Teensy 3.x
41 ARMV = 6