diff options
Diffstat (limited to 'quantum/mcu_selection.mk')
| -rw-r--r-- | quantum/mcu_selection.mk | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/quantum/mcu_selection.mk b/quantum/mcu_selection.mk index f7eaeec8a..92e3a7c92 100644 --- a/quantum/mcu_selection.mk +++ b/quantum/mcu_selection.mk | |||
| @@ -81,7 +81,7 @@ ifneq ($(findstring MK20DX256, $(MCU)),) | |||
| 81 | BOARD ?= PJRC_TEENSY_3_1 | 81 | BOARD ?= PJRC_TEENSY_3_1 |
| 82 | endif | 82 | endif |
| 83 | 83 | ||
| 84 | ifneq ($(findstring MK66F18, $(MCU)),) | 84 | ifneq ($(findstring MK66FX1M0, $(MCU)),) |
| 85 | # Cortex version | 85 | # Cortex version |
| 86 | MCU = cortex-m4 | 86 | MCU = cortex-m4 |
| 87 | 87 | ||
| @@ -273,6 +273,38 @@ ifneq ($(findstring STM32F401, $(MCU)),) | |||
| 273 | UF2_FAMILY ?= STM32F4 | 273 | UF2_FAMILY ?= STM32F4 |
| 274 | endif | 274 | endif |
| 275 | 275 | ||
| 276 | ifneq ($(findstring STM32F405, $(MCU)),) | ||
| 277 | # Cortex version | ||
| 278 | MCU = cortex-m4 | ||
| 279 | |||
| 280 | # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7 | ||
| 281 | ARMV = 7 | ||
| 282 | |||
| 283 | ## chip/board settings | ||
| 284 | # - the next two should match the directories in | ||
| 285 | # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES) | ||
| 286 | MCU_FAMILY = STM32 | ||
| 287 | MCU_SERIES = STM32F4xx | ||
| 288 | |||
| 289 | # Linker script to use | ||
| 290 | # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/ | ||
| 291 | # or <keyboard_dir>/ld/ | ||
| 292 | MCU_LDSCRIPT ?= STM32F405xG | ||
| 293 | |||
| 294 | # Startup code to use | ||
| 295 | # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/ | ||
| 296 | MCU_STARTUP ?= stm32f4xx | ||
| 297 | |||
| 298 | # Board: it should exist either in <chibios>/os/hal/boards/, | ||
| 299 | # <keyboard_dir>/boards/, or drivers/boards/ | ||
| 300 | BOARD ?= GENERIC_STM32_F405XG | ||
| 301 | |||
| 302 | USE_FPU ?= yes | ||
| 303 | |||
| 304 | # UF2 settings | ||
| 305 | UF2_FAMILY ?= STM32F4 | ||
| 306 | endif | ||
| 307 | |||
| 276 | ifneq ($(findstring STM32F407, $(MCU)),) | 308 | ifneq ($(findstring STM32F407, $(MCU)),) |
| 277 | # Cortex version | 309 | # Cortex version |
| 278 | MCU = cortex-m4 | 310 | MCU = cortex-m4 |
