Add ChibiOS support for QMK (#465)
[jackhill/qmk/firmware.git] / keyboards / teensy_lc_onekey / Makefile
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 MCU_FAMILY = KINETIS
11 MCU_SERIES = KL2x
12
13 # Linker script to use
14 # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
15 # or <this_dir>/ld/
16 # - NOTE: a custom ld script is needed for EEPROM on Teensy LC
17 # - LDSCRIPT =
18 # - MKL26Z64 for Teensy LC
19 # - MK20DX128 for Teensy 3.0
20 # - MK20DX256 for Teensy 3.1 and 3.2
21 MCU_LDSCRIPT = MKL26Z64
22
23 # Startup code to use
24 # - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/
25 # - STARTUP =
26 # - kl2x for Teensy LC
27 # - k20x5 for Teensy 3.0
28 # - k20x7 for Teensy 3.1 and 3.2
29 MCU_STARTUP = kl2x
30
31 # Board: it should exist either in <chibios>/os/hal/boards/
32 # or <this_dir>/boards
33 # - BOARD =
34 # - PJRC_TEENSY_LC for Teensy LC
35 # - PJRC_TEENSY_3 for Teensy 3.0
36 # - PJRC_TEENSY_3_1 for Teensy 3.1 or 3.2
37 BOARD = PJRC_TEENSY_LC
38
39 # Cortex version
40 # Teensy LC is cortex-m0plus; Teensy 3.x are cortex-m4
41 MCU = cortex-m0plus
42
43 # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
44 # I.e. 6 for Teensy LC; 7 for Teensy 3.x
45 ARMV = 6
46
47 # Build Options
48 # comment out to disable the options.
49 #
50 BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration
51 ## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.)
52 MOUSEKEY_ENABLE ?= yes # Mouse keys
53 EXTRAKEY_ENABLE ?= yes # Audio control and System control
54 CONSOLE_ENABLE ?= yes # Console for debug
55 COMMAND_ENABLE ?= yes # Commands for debug and configuration
56 SLEEP_LED_ENABLE ?= yes # Breathing sleep LED during USB suspend
57 NKRO_ENABLE ?= yes # USB Nkey Rollover
58 CUSTOM_MATRIX ?= yes # Custom matrix file
59
60 ifndef QUANTUM_DIR
61 include ../../Makefile
62 endif