summaryrefslogtreecommitdiff
path: root/builddefs
diff options
context:
space:
mode:
authorJoy Lee <chang.li@westberrytech.com>2022-05-23 13:57:24 +0800
committerGitHub <noreply@github.com>2022-05-23 15:57:24 +1000
commit1c7e8b9a9de0f379bad0823e3f0d1c8d9762ea6c (patch)
treec789242e9b7ee43f4c293f4296a2811085e546c5 /builddefs
parent1182f5b4be6f6ed7ee7a86bd11ef2226a8b04f8e (diff)
Added support for Wb32fq95 (#16871)
Diffstat (limited to 'builddefs')
-rw-r--r--builddefs/mcu_selection.mk34
1 files changed, 34 insertions, 0 deletions
diff --git a/builddefs/mcu_selection.mk b/builddefs/mcu_selection.mk
index dba5c404be..d5fb731e08 100644
--- a/builddefs/mcu_selection.mk
+++ b/builddefs/mcu_selection.mk
@@ -683,6 +683,40 @@ ifneq ($(findstring WB32F3G71, $(MCU)),)
WB32_BOOTLOADER_ADDRESS ?= 0x1FFFE000
endif
+ifneq ($(findstring WB32FQ95, $(MCU)),)
+ # Cortex version
+ MCU = cortex-m3
+
+ # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
+ ARMV = 7
+
+ ## chip/board settings
+ # - the next two should match the directories in
+ # <chibios[-contrib]>/os/hal/ports/$(MCU_PORT_NAME)/$(MCU_SERIES)
+ # OR
+ # <chibios[-contrib]>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
+ MCU_FAMILY = WB32
+ MCU_SERIES = WB32FQ95xx
+
+ # Linker script to use
+ # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
+ # or <keyboard_dir>/ld/
+ MCU_LDSCRIPT ?= WB32FQ95xB
+
+ # Startup code to use
+ # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
+ MCU_STARTUP ?= wb32fq95xx
+
+ # Board: it should exist either in <chibios>/os/hal/boards/,
+ # <keyboard_dir>/boards/, or drivers/boards/
+ BOARD ?= GENERIC_WB32_FQ95XX
+
+ USE_FPU ?= no
+
+ # Bootloader address for WB32 DFU
+ WB32_BOOTLOADER_ADDRESS ?= 0x1FFFE000
+endif
+
ifneq ($(findstring GD32VF103, $(MCU)),)
# RISC-V
MCU = risc-v