]>
git.gir.st - tmk_keyboard.git/blob - keyboard/infinity_chibios/Makefile
1 # Target file name (without extension).
4 # Directory common source files exist
5 TMK_DIR
= ..
/..
/tmk_core
7 # Directory keyboard dependent files exist
10 # project specific files
16 SRC
:= keymap_
$(KEYMAP
).c
$(SRC
)
18 SRC
:= keymap_plain.c
$(SRC
)
23 ## chip/board settings
24 # - the next two should match the directories in
25 # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
26 # - For Teensies, FAMILY = KINETIS and SERIES is either
27 # KL2x (LC) or K20x (3.0,3.1,3.2).
28 # - For Infinity KB, SERIES = K20x
32 # Linker script to use
33 # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
35 # - NOTE: a custom ld script is needed for EEPROM on Teensy LC
37 # - MKL26Z64 for Teensy LC
38 # - MK20DX128 for Teensy 3.0
39 # - MK20DX256 for Teensy 3.1 and 3.2
40 # - MK20DX128BLDR4 for Infinity with Kiibohd bootloader
41 MCU_LDSCRIPT
= MK20DX128BLDR4
44 # - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/
46 # - kl2x for Teensy LC
47 # - k20x5 for Teensy 3.0 and Infinity KB
48 # - k20x7 for Teensy 3.1 and 3.2
51 # Board: it should exist either in <chibios>/os/hal/boards/
52 # or <this_dir>/boards
54 # - PJRC_TEENSY_LC for Teensy LC
55 # - PJRC_TEENSY_3 for Teensy 3.0
56 # - PJRC_TEENSY_3_1 for Teensy 3.1 or 3.2
57 # - MCHCK_K20 for Infinity KB
61 # Teensy LC is cortex-m0; Teensy 3.x are cortex-m4
64 # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
65 # I.e. 6 for Teensy LC; 7 for Teensy 3.x
68 # Vector table for application
69 # 0x00000000-0x00001000 area is occupied by bootlaoder.*/
70 # The CORTEX_VTOR... is needed only for MCHCK/Infinity KB
71 OPT_DEFS
= -DCORTEX_VTOR_INIT
=0x00001000
74 # comment out to disable the options.
76 BOOTMAGIC_ENABLE
= yes
# Virtual DIP switch configuration
77 ## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.)
78 MOUSEKEY_ENABLE
= yes
# Mouse keys
79 EXTRAKEY_ENABLE
= yes
# Audio control and System control
80 CONSOLE_ENABLE
= yes
# Console for debug
81 COMMAND_ENABLE
= yes
# Commands for debug and configuration
82 SLEEP_LED_ENABLE
= yes
# Breathing sleep LED during USB suspend
83 NKRO_ENABLE
= yes
# USB Nkey Rollover
85 include $(TMK_DIR
)/tool
/chibios
/common.mk
86 include $(TMK_DIR
)/tool
/chibios
/chibios.mk
88 program
: $(BUILDDIR
)/$(PROJECT
).bin
89 dfu-util
-D
$(BUILDDIR
)/$(PROJECT
).bin