aboutsummaryrefslogtreecommitdiff
path: root/quantum/mcu_selection.mk
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/mcu_selection.mk')
-rw-r--r--quantum/mcu_selection.mk38
1 files changed, 38 insertions, 0 deletions
diff --git a/quantum/mcu_selection.mk b/quantum/mcu_selection.mk
index edf44f5dc..9268c4522 100644
--- a/quantum/mcu_selection.mk
+++ b/quantum/mcu_selection.mk
@@ -435,6 +435,44 @@ ifneq ($(findstring STM32G474, $(MCU)),)
435 UF2_FAMILY ?= STM32G4 435 UF2_FAMILY ?= STM32G4
436endif 436endif
437 437
438ifneq (,$(filter $(MCU),STM32L433 STM32L443))
439 # Cortex version
440 MCU = cortex-m4
441
442 # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
443 ARMV = 7
444
445 ## chip/board settings
446 # - the next two should match the directories in
447 # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
448 MCU_FAMILY = STM32
449 MCU_SERIES = STM32L4xx
450
451 # Linker script to use
452 # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
453 # or <keyboard_dir>/ld/
454 MCU_LDSCRIPT ?= STM32L432xC
455
456 # Startup code to use
457 # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
458 MCU_STARTUP ?= stm32l4xx
459
460 # Board: it should exist either in <chibios>/os/hal/boards/,
461 # <keyboard_dir>/boards/, or drivers/boards/
462 BOARD ?= GENERIC_STM32_L433XC
463
464 PLATFORM_NAME ?= platform_l432
465
466 USE_FPU ?= yes
467
468 # Options to pass to dfu-util when flashing
469 DFU_ARGS ?= -d 0483:DF11 -a 0 -s 0x08000000:leave
470 DFU_SUFFIX_ARGS ?= -v 0483 -p DF11
471
472 # UF2 settings
473 UF2_FAMILY ?= STM32L4
474endif
475
438ifneq (,$(filter $(MCU),at90usb162 atmega16u2 atmega32u2 atmega16u4 atmega32u4 at90usb646 at90usb647 at90usb1286 at90usb1287)) 476ifneq (,$(filter $(MCU),at90usb162 atmega16u2 atmega32u2 atmega16u4 atmega32u4 at90usb646 at90usb647 at90usb1286 at90usb1287))
439 PROTOCOL = LUFA 477 PROTOCOL = LUFA
440 478