Add Arm Teensys to mcu_selection.mk (#8026)
[jackhill/qmk/firmware.git] / keyboards / ergodox_infinity / rules.mk
1 # MCU name
2 MCU = MK20DX256
3
4 # Linker script to use
5 # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
6 # or <this_dir>/ld/
7 # - NOTE: a custom ld script is needed for EEPROM on Teensy LC
8 # - LDSCRIPT =
9 # - MKL26Z64 for Teensy LC
10 # - MK20DX128 for Teensy 3.0
11 # - MK20DX256 for Teensy 3.1 and 3.2
12 # - MK20DX128BLDR4 for Infinity 60% with Kiibohd bootloader
13 # - MK20DX256BLDR8 for Infinity ErgoDox with Kiibohd bootloader
14 MCU_LDSCRIPT = MK20DX256BLDR8
15
16 # Vector table for application
17 # 0x00000000-0x00001000 area is occupied by bootlaoder.*/
18 # The CORTEX_VTOR... is needed only for MCHCK/Infinity KB
19 OPT_DEFS += -DCORTEX_VTOR_INIT=0x00002000
20
21 BOOTLOADER = dfu
22
23 # Build Options
24 # comment out to disable the options.
25 #
26
27 DFU_ARGS = -d 1c11:b007
28 DFU_SUFFIX_ARGS = -p b007 -v 1c11
29
30 BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
31 MOUSEKEY_ENABLE = yes # Mouse keys
32 EXTRAKEY_ENABLE = yes # Audio control and System control
33 CONSOLE_ENABLE = no # Console for debug
34 COMMAND_ENABLE = yes # Commands for debug and configuration
35 CUSTOM_MATRIX = yes # Custom matrix file for the ErgoDox EZ
36 SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
37 NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
38 UNICODE_ENABLE = yes # Unicode
39 SWAP_HANDS_ENABLE= yes # Allow swapping hands of keyboard
40
41 CUSTOM_MATRIX = yes # Custom matrix file
42 SERIAL_LINK_ENABLE = yes
43 VISUALIZER_ENABLE = yes
44 LCD_ENABLE = yes
45 BACKLIGHT_ENABLE = yes
46 BACKLIGHT_DRIVER = custom
47 LCD_BACKLIGHT_ENABLE = yes
48 MIDI_ENABLE = no
49 RGBLIGHT_ENABLE = no
50
51 LCD_DRIVER = st7565
52 LCD_WIDTH = 128
53 LCD_HEIGHT = 32
54
55 LED_DRIVER = is31fl3731c
56 LED_WIDTH = 7
57 LED_HEIGHT = 7
58
59 # project specific files
60 SRC = matrix.c \
61 led.c
62
63 LAYOUTS = ergodox