]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/ergodox/infinity/rules.mk
af29ebce8d637129ecb7f4eff911d5fd595ea2aa
[qmk_firmware.git] / keyboards / ergodox / infinity / rules.mk
1 # project specific files
2 SRC =   matrix.c \
3         led.c \
4         animations.c
5
6 ## chip/board settings
7 # - the next two should match the directories in
8 #   <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
9 # - For Teensies, FAMILY = KINETIS and SERIES is either
10 #   KL2x (LC) or K20x (3.0,3.1,3.2).
11 # - For Infinity KB, SERIES = K20x
12 MCU_FAMILY = KINETIS
13 MCU_SERIES = K20x
14
15 # Linker script to use
16 # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
17 #   or <this_dir>/ld/
18 # - NOTE: a custom ld script is needed for EEPROM on Teensy LC
19 # - LDSCRIPT =
20 #   - MKL26Z64 for Teensy LC
21 #   - MK20DX128 for Teensy 3.0
22 #   - MK20DX256 for Teensy 3.1 and 3.2
23 #   - MK20DX128BLDR4 for Infinity 60% with Kiibohd bootloader
24 #   - MK20DX256BLDR8 for Infinity ErgoDox with Kiibohd bootloader
25 MCU_LDSCRIPT = MK20DX256BLDR8
26
27 # Startup code to use
28 #  - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/
29 # - STARTUP =
30 #   - kl2x for Teensy LC
31 #   - k20x5 for Teensy 3.0 and Infinity 60%
32 #   - k20x7 for Teensy 3.1, 3.2 and Infinity ErgoDox
33 MCU_STARTUP = k20x7
34
35 # Board: it should exist either in <chibios>/os/hal/boards/
36 #  or <this_dir>/boards
37 # - BOARD =
38 #   - PJRC_TEENSY_LC for Teensy LC
39 #   - PJRC_TEENSY_3 for Teensy 3.0
40 #   - PJRC_TEENSY_3_1 for Teensy 3.1 or 3.2
41 #   - MCHCK_K20 for Infinity KB
42 #BOARD = MCHCK_K20
43 BOARD = PJRC_TEENSY_3_1
44
45 # Cortex version
46 # Teensy LC is cortex-m0; Teensy 3.x are cortex-m4
47 MCU  = cortex-m4
48
49 # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
50 # I.e. 6 for Teensy LC; 7 for Teensy 3.x
51 ARMV = 7
52
53 # Vector table for application
54 # 0x00000000-0x00001000 area is occupied by bootlaoder.*/
55 # The CORTEX_VTOR... is needed only for MCHCK/Infinity KB
56 OPT_DEFS += -DCORTEX_VTOR_INIT=0x00002000
57
58 # Build Options
59 #   comment out to disable the options.
60 #
61 CUSTOM_MATRIX ?= yes # Custom matrix file
62 SERIAL_LINK_ENABLE = yes
63 VISUALIZER_ENABLE ?= yes
64 LCD_ENABLE ?= yes
65 BACKLIGHT_ENABLE ?= yes
66 LCD_BACKLIGHT_ENABLE ?= yes
67 MIDI_ENABLE = no
68 RGBLIGHT_ENABLE = no
69
70 include $(SUBPROJECT_PATH)/drivers/gdisp/st7565ergodox/driver.mk
71 include $(SUBPROJECT_PATH)/drivers/gdisp/IS31FL3731C/driver.mk