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