aboutsummaryrefslogtreecommitdiff
path: root/builddefs/mcu_selection.mk
diff options
context:
space:
mode:
authorJoy Lee <chang.li@westberrytech.com>2021-11-27 06:28:18 +0800
committerGitHub <noreply@github.com>2021-11-27 09:28:18 +1100
commit68838bb700413144c6fdaf680f3d412b8231b584 (patch)
tree771e7fea9bc145c9e833ac66dcb712af9b55e532 /builddefs/mcu_selection.mk
parentb04f66f2452494206673323c9495ea6a56c0cb06 (diff)
downloadqmk_firmware-68838bb700413144c6fdaf680f3d412b8231b584.tar.gz
qmk_firmware-68838bb700413144c6fdaf680f3d412b8231b584.zip
Westberrytech pr (#14422)
* Added support for WB32 MCU * Modified eeprom_wb32.c * Remove the eeprom_wb32-related code
Diffstat (limited to 'builddefs/mcu_selection.mk')
-rw-r--r--builddefs/mcu_selection.mk31
1 files changed, 30 insertions, 1 deletions
diff --git a/builddefs/mcu_selection.mk b/builddefs/mcu_selection.mk
index 1251b7a2b..46d34aabe 100644
--- a/builddefs/mcu_selection.mk
+++ b/builddefs/mcu_selection.mk
@@ -540,10 +540,39 @@ ifneq (,$(filter $(MCU),STM32L412 STM32L422))
540 UF2_FAMILY ?= STM32L4 540 UF2_FAMILY ?= STM32L4
541endif 541endif
542 542
543ifneq ($(findstring WB32F3G71, $(MCU)),)
544 # Cortex version
545 MCU = cortex-m3
546
547 # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
548 ARMV = 7
549
550 ## chip/board settings
551 # - the next two should match the directories in
552 # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
553 MCU_FAMILY = WB32
554 MCU_SERIES = WB32F3G71xx
555
556 # Linker script to use
557 # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
558 # or <keyboard_dir>/ld/
559 MCU_LDSCRIPT ?= WB32F3G71x9
560
561 # Startup code to use
562 # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
563 MCU_STARTUP ?= wb32f3g71xx
564
565 # Board: it should exist either in <chibios>/os/hal/boards/,
566 # <keyboard_dir>/boards/, or drivers/boards/
567 BOARD ?= GENERIC_WB32_F3G71XX
568
569 USE_FPU ?= no
570endif
571
543ifneq ($(findstring GD32VF103, $(MCU)),) 572ifneq ($(findstring GD32VF103, $(MCU)),)
544 # RISC-V 573 # RISC-V
545 MCU = risc-v 574 MCU = risc-v
546 575
547 # RISC-V extensions and abi configuration 576 # RISC-V extensions and abi configuration
548 MCU_ARCH = rv32imac 577 MCU_ARCH = rv32imac
549 MCU_ABI = ilp32 578 MCU_ABI = ilp32