diff options
Diffstat (limited to 'quantum/mcu_selection.mk')
| -rw-r--r-- | quantum/mcu_selection.mk | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/quantum/mcu_selection.mk b/quantum/mcu_selection.mk index f41a9e821..f15a4f58c 100644 --- a/quantum/mcu_selection.mk +++ b/quantum/mcu_selection.mk | |||
| @@ -1,3 +1,85 @@ | |||
| 1 | ifneq ($(findstring MKL26Z64, $(MCU)),) | ||
| 2 | # Cortex version | ||
| 3 | MCU = cortex-m0plus | ||
| 4 | |||
| 5 | # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7 | ||
| 6 | ARMV = 6 | ||
| 7 | |||
| 8 | ## chip/board settings | ||
| 9 | # - the next two should match the directories in | ||
| 10 | # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES) | ||
| 11 | MCU_FAMILY = KINETIS | ||
| 12 | MCU_SERIES = KL2x | ||
| 13 | |||
| 14 | # Linker script to use | ||
| 15 | # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/ | ||
| 16 | # or <keyboard_dir>/ld/ | ||
| 17 | # - NOTE: a custom ld script is needed for EEPROM on Teensy LC | ||
| 18 | MCU_LDSCRIPT ?= MKL26Z64 | ||
| 19 | |||
| 20 | # Startup code to use | ||
| 21 | # - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/ | ||
| 22 | MCU_STARTUP ?= kl2x | ||
| 23 | |||
| 24 | # Board: it should exist either in <chibios>/os/hal/boards/, | ||
| 25 | # <keyboard_dir>/boards/, or drivers/boards/ | ||
| 26 | BOARD ?= PJRC_TEENSY_LC | ||
| 27 | endif | ||
| 28 | |||
| 29 | ifneq ($(findstring MK20DX128, $(MCU)),) | ||
| 30 | # Cortex version | ||
| 31 | MCU = cortex-m4 | ||
| 32 | |||
| 33 | # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7 | ||
| 34 | ARMV = 7 | ||
| 35 | |||
| 36 | ## chip/board settings | ||
| 37 | # - the next two should match the directories in | ||
| 38 | # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES) | ||
| 39 | MCU_FAMILY = KINETIS | ||
| 40 | MCU_SERIES = K20x | ||
| 41 | |||
| 42 | # Linker script to use | ||
| 43 | # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/ | ||
| 44 | # or <keyboard_dir>/ld/ | ||
| 45 | MCU_LDSCRIPT ?= MK20DX128 | ||
| 46 | |||
| 47 | # Startup code to use | ||
| 48 | # - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/ | ||
| 49 | MCU_STARTUP ?= k20x5 | ||
| 50 | |||
| 51 | # Board: it should exist either in <chibios>/os/hal/boards/, | ||
| 52 | # <keyboard_dir>/boards/, or drivers/boards/ | ||
| 53 | BOARD ?= PJRC_TEENSY_3 | ||
| 54 | endif | ||
| 55 | |||
| 56 | ifneq ($(findstring MK20DX256, $(MCU)),) | ||
| 57 | # Cortex version | ||
| 58 | MCU = cortex-m4 | ||
| 59 | |||
| 60 | # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7 | ||
| 61 | ARMV = 7 | ||
| 62 | |||
| 63 | ## chip/board settings | ||
| 64 | # - the next two should match the directories in | ||
| 65 | # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES) | ||
| 66 | MCU_FAMILY = KINETIS | ||
| 67 | MCU_SERIES = K20x | ||
| 68 | |||
| 69 | # Linker script to use | ||
| 70 | # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/ | ||
| 71 | # or <keyboard_dir>/ld/ | ||
| 72 | MCU_LDSCRIPT ?= MK20DX256 | ||
| 73 | |||
| 74 | # Startup code to use | ||
| 75 | # - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/ | ||
| 76 | MCU_STARTUP ?= k20x7 | ||
| 77 | |||
| 78 | # Board: it should exist either in <chibios>/os/hal/boards/, | ||
| 79 | # <keyboard_dir>/boards/, or drivers/boards/ | ||
| 80 | BOARD ?= PJRC_TEENSY_3_1 | ||
| 81 | endif | ||
| 82 | |||
| 1 | ifneq ($(findstring STM32F303, $(MCU)),) | 83 | ifneq ($(findstring STM32F303, $(MCU)),) |
| 2 | # Cortex version | 84 | # Cortex version |
| 3 | MCU = cortex-m4 | 85 | MCU = cortex-m4 |
