aboutsummaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2021-06-30 10:07:40 +1000
committerGitHub <noreply@github.com>2021-06-30 10:07:40 +1000
commit8bb231aa1c40a7c6b6fdd229e88ef79c3fa930e2 (patch)
treec862a6538987482a79ccef3a2296d3250006e847 /quantum
parent85965043613a0674b782cefd1ed9ccc6b9cc90a8 (diff)
downloadqmk_firmware-8bb231aa1c40a7c6b6fdd229e88ef79c3fa930e2.tar.gz
qmk_firmware-8bb231aa1c40a7c6b6fdd229e88ef79c3fa930e2.zip
Adds support for STM32L412xB, STM32L422xB. (#13383)
* Adds support for STM32L412xB, STM32L422xB. * Add to list of supported MCUs. * Disable SPI1 by default.
Diffstat (limited to 'quantum')
-rw-r--r--quantum/mcu_selection.mk34
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
434endif 434endif
435 435
436ifneq (,$(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
468endif
469
436ifneq (,$(filter $(MCU),at90usb162 atmega16u2 atmega32u2 atmega16u4 atmega32u4 at90usb646 at90usb647 at90usb1286 at90usb1287)) 470ifneq (,$(filter $(MCU),at90usb162 atmega16u2 atmega32u2 atmega16u4 atmega32u4 at90usb646 at90usb647 at90usb1286 at90usb1287))
437 PROTOCOL = LUFA 471 PROTOCOL = LUFA
438 472