diff options
Diffstat (limited to 'quantum/mcu_selection.mk')
| -rw-r--r-- | quantum/mcu_selection.mk | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/quantum/mcu_selection.mk b/quantum/mcu_selection.mk index f8def7f67..ca0accd71 100644 --- a/quantum/mcu_selection.mk +++ b/quantum/mcu_selection.mk | |||
| @@ -433,6 +433,40 @@ ifneq (,$(filter $(MCU),STM32L433 STM32L443)) | |||
| 433 | UF2_FAMILY ?= STM32L4 | 433 | UF2_FAMILY ?= STM32L4 |
| 434 | endif | 434 | endif |
| 435 | 435 | ||
| 436 | ifneq (,$(filter $(MCU),STM32L412 STM32L422)) | ||
| 437 | # Cortex version | ||
| 438 | MCU = cortex-m4 | ||
| 439 | |||
| 440 | # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7 | ||
| 441 | ARMV = 7 | ||
| 442 | |||
| 443 | ## chip/board settings | ||
| 444 | # - the next two should match the directories in | ||
| 445 | # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES) | ||
| 446 | MCU_FAMILY = STM32 | ||
| 447 | MCU_SERIES = STM32L4xx | ||
| 448 | |||
| 449 | # Linker script to use | ||
| 450 | # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/ | ||
| 451 | # or <keyboard_dir>/ld/ | ||
| 452 | MCU_LDSCRIPT ?= STM32L412xB | ||
| 453 | |||
| 454 | # Startup code to use | ||
| 455 | # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/ | ||
| 456 | MCU_STARTUP ?= stm32l4xx | ||
| 457 | |||
| 458 | # Board: it should exist either in <chibios>/os/hal/boards/, | ||
| 459 | # <keyboard_dir>/boards/, or drivers/boards/ | ||
| 460 | BOARD ?= GENERIC_STM32_L412XB | ||
| 461 | |||
| 462 | PLATFORM_NAME ?= platform_l432 | ||
| 463 | |||
| 464 | USE_FPU ?= yes | ||
| 465 | |||
| 466 | # UF2 settings | ||
| 467 | UF2_FAMILY ?= STM32L4 | ||
| 468 | endif | ||
| 469 | |||
| 436 | ifneq (,$(filter $(MCU),at90usb162 atmega16u2 atmega32u2 atmega16u4 atmega32u4 at90usb646 at90usb647 at90usb1286 at90usb1287)) | 470 | ifneq (,$(filter $(MCU),at90usb162 atmega16u2 atmega32u2 atmega16u4 atmega32u4 at90usb646 at90usb647 at90usb1286 at90usb1287)) |
| 437 | PROTOCOL = LUFA | 471 | PROTOCOL = LUFA |
| 438 | 472 | ||
