]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/k_type/rules.mk
Usbasploader bootloader option addition (#6304)
[qmk_firmware.git] / keyboards / k_type / rules.mk
1 # project specific files
2 SRC =   matrix.c
3
4 ## chip/board settings
5 # - the next two should match the directories in
6 #   <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
7 # - For Teensies, FAMILY = KINETIS and SERIES is either
8 #   KL2x (LC) or K20x (3.0,3.1,3.2).
9 # - For Infinity KB, SERIES = K20x
10 MCU_FAMILY = KINETIS
11 MCU_SERIES = K20x
12
13 # Linker script to use
14 # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
15 #   or <this_dir>/ld/
16 # - NOTE: a custom ld script is needed for EEPROM on Teensy LC
17 # - LDSCRIPT =
18 #   - MKL26Z64 for Teensy LC
19 #   - MK20DX128 for Teensy 3.0
20 #   - MK20DX256 for Teensy 3.1 and 3.2
21 #   - MK20DX128BLDR4 for Infinity with Kiibohd bootloader
22 #   - MK20DX256BLDR8 for Infinity ErgoDox with Kiibohd bootloader
23 MCU_LDSCRIPT = MK20DX256BLDR8
24
25 # Startup code to use
26 #  - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/
27 # - STARTUP =
28 #   - kl2x for Teensy LC
29 #   - k20x5 for Teensy 3.0 and Infinity KB
30 #   - k20x7 for Teensy 3.1 and 3.2
31 MCU_STARTUP = k20x7
32
33 # Board: it should exist either in <chibios>/os/hal/boards/
34 #  or <this_dir>/boards
35 # - BOARD =
36 #   - PJRC_TEENSY_LC for Teensy LC
37 #   - PJRC_TEENSY_3 for Teensy 3.0
38 #   - PJRC_TEENSY_3_1 for Teensy 3.1 or 3.2
39 #   - MCHCK_K20 for Infinity KB
40
41 # This board was copied from PJRC_TEENSY_3_1. The only difference should be a
42 # hack to ensure the watchdog has started before trying to disable it.
43 BOARD = IC_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 bootloader.*/
55 # The CORTEX_VTOR... is needed only for MCHCK/Infinity KB
56 #OPT_DEFS += -DCORTEX_VTOR_INIT=0x00002000
57 OPT_DEFS =
58
59 DFU_ARGS = -d 1c11:b007
60 DFU_SUFFIX_ARGS = -p b007 -v 1c11
61
62 # Build Options
63 #   comment out to disable the options.
64 #
65 BOOTMAGIC_ENABLE = no   # Virtual DIP switch configuration
66 ## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.)
67 MOUSEKEY_ENABLE = yes   # Mouse keys
68 EXTRAKEY_ENABLE = yes   # Audio control and System control
69 CONSOLE_ENABLE = yes    # Console for debug
70 COMMAND_ENABLE = yes    # Commands for debug and configuration
71 SLEEP_LED_ENABLE = yes  # Breathing sleep LED during USB suspend
72 NKRO_ENABLE = yes           # USB Nkey Rollover
73 CUSTOM_MATRIX = yes # Custom matrix file
74 DEBUG_ENABLE = yes