]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/ergodox_infinity/rules.mk
Do some cleanup for the API
[qmk_firmware.git] / keyboards / ergodox_infinity / rules.mk
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 # - For Infinity KB, SERIES = K20x
11 MCU_FAMILY = KINETIS
12 MCU_SERIES = K20x
13
14 # Linker script to use
15 # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
16 #   or <this_dir>/ld/
17 # - NOTE: a custom ld script is needed for EEPROM on Teensy LC
18 # - LDSCRIPT =
19 #   - MKL26Z64 for Teensy LC
20 #   - MK20DX128 for Teensy 3.0
21 #   - MK20DX256 for Teensy 3.1 and 3.2
22 #   - MK20DX128BLDR4 for Infinity 60% with Kiibohd bootloader
23 #   - MK20DX256BLDR8 for Infinity ErgoDox with Kiibohd bootloader
24 MCU_LDSCRIPT = MK20DX256BLDR8
25
26 # Startup code to use
27 #  - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/
28 # - STARTUP =
29 #   - kl2x for Teensy LC
30 #   - k20x5 for Teensy 3.0 and Infinity 60%
31 #   - k20x7 for Teensy 3.1, 3.2 and Infinity ErgoDox
32 MCU_STARTUP = k20x7
33
34 # Board: it should exist either in <chibios>/os/hal/boards/
35 #  or <this_dir>/boards
36 # - BOARD =
37 #   - PJRC_TEENSY_LC for Teensy LC
38 #   - PJRC_TEENSY_3 for Teensy 3.0
39 #   - PJRC_TEENSY_3_1 for Teensy 3.1 or 3.2
40 #   - MCHCK_K20 for Infinity KB
41 #BOARD = MCHCK_K20
42 BOARD = PJRC_TEENSY_3_1
43
44 # Cortex version
45 # Teensy LC is cortex-m0; Teensy 3.x are cortex-m4
46 MCU  = cortex-m4
47
48 # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
49 # I.e. 6 for Teensy LC; 7 for Teensy 3.x
50 ARMV = 7
51
52 # Vector table for application
53 # 0x00000000-0x00001000 area is occupied by bootlaoder.*/
54 # The CORTEX_VTOR... is needed only for MCHCK/Infinity KB
55 OPT_DEFS += -DCORTEX_VTOR_INIT=0x00002000
56
57 # Build Options
58 #   comment out to disable the options.
59 #
60
61 BOOTMAGIC_ENABLE = no  # Virtual DIP switch configuration(+1000)
62 MOUSEKEY_ENABLE  = yes # Mouse keys(+4700)
63 EXTRAKEY_ENABLE  = yes # Audio control and System control(+450)
64 CONSOLE_ENABLE   = no  # Console for debug(+400)
65 COMMAND_ENABLE   = yes # Commands for debug and configuration
66 CUSTOM_MATRIX    = yes # Custom matrix file for the ErgoDox EZ
67 SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
68 NKRO_ENABLE      = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
69 UNICODE_ENABLE   = yes # Unicode
70 ONEHAND_ENABLE   = yes # Allow swapping hands of keyboard
71
72 CUSTOM_MATRIX = yes # Custom matrix file
73 SERIAL_LINK_ENABLE = yes
74 VISUALIZER_ENABLE = yes
75 LCD_ENABLE = yes
76 BACKLIGHT_ENABLE = yes
77 LCD_BACKLIGHT_ENABLE = yes
78 MIDI_ENABLE = no
79 RGBLIGHT_ENABLE = no
80
81 LCD_DRIVER = st7565
82 LCD_WIDTH = 128 
83 LCD_HEIGHT = 32
84
85 LED_DRIVER = is31fl3731c
86 LED_WIDTH = 7 
87 LED_HEIGHT = 7
88
89 LAYOUTS = ergodox