aboutsummaryrefslogtreecommitdiff
path: root/ports/stm32/Makefile
diff options
context:
space:
mode:
authorDamien George2019-07-17 16:33:31 +1000
committerDamien George2019-07-17 16:33:31 +1000
commit59b7166d87b480517ca5905ee2239dc2cace18b9 (patch)
treef12ac9ba2ba1d5159a2c857b3b7da880656ecc9a /ports/stm32/Makefile
parentd42392b9a78d03080d12cc17283c570c3edf8016 (diff)
stm32: Add initial support for STM32WBxx MCUs.
This new series of MCUs is similar to the L4 series with an additional Cortex-M0 coprocessor. The firmware for the wireless stack must be managed separately and MicroPython does not currently interface to it. Supported features so far include: RTC, UART, USB, internal flash filesystem.
Diffstat (limited to 'ports/stm32/Makefile')
-rw-r--r--ports/stm32/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile
index f74180d39..e868d6de1 100644
--- a/ports/stm32/Makefile
+++ b/ports/stm32/Makefile
@@ -79,6 +79,7 @@ CFLAGS_MCU_f7 = $(CFLAGS_CORTEX_M) -mtune=cortex-m7 -mcpu=cortex-m7
CFLAGS_MCU_l0 = $(CFLAGS_CORTEX_M) -mtune=cortex-m0plus -mcpu=cortex-m0plus
CFLAGS_MCU_l4 = $(CFLAGS_CORTEX_M) -mtune=cortex-m4 -mcpu=cortex-m4
CFLAGS_MCU_h7 = $(CFLAGS_CORTEX_M) -mtune=cortex-m7 -mcpu=cortex-m7
+CFLAGS_MCU_wb = $(CFLAGS_CORTEX_M) -mtune=cortex-m4 -mcpu=cortex-m4
CFLAGS = $(INC) -Wall -Wpointer-arith -Werror -std=gnu99 -nostdlib $(CFLAGS_MOD) $(CFLAGS_EXTRA)
CFLAGS += -D$(CMSIS_MCU)
@@ -335,7 +336,7 @@ SRC_HAL = $(addprefix $(HAL_DIR)/Src/stm32$(MCU_SERIES)xx_,\
hal_uart.c \
)
-ifeq ($(MCU_SERIES),$(filter $(MCU_SERIES),f4 f7 h7 l0 l4))
+ifeq ($(MCU_SERIES),$(filter $(MCU_SERIES),f4 f7 h7 l0 l4 wb))
SRC_HAL += $(addprefix $(HAL_DIR)/Src/stm32$(MCU_SERIES)xx_,\
ll_usb.c \
)
@@ -361,7 +362,7 @@ endif
ifeq ($(CMSIS_MCU),$(filter $(CMSIS_MCU),STM32H743xx))
SRC_HAL += $(addprefix $(HAL_DIR)/Src/stm32$(MCU_SERIES)xx_, hal_fdcan.c)
else
-ifneq ($(MCU_SERIES),$(filter $(MCU_SERIES),l0))
+ifeq ($(MCU_SERIES),$(filter $(MCU_SERIES),f0 f4 f7 h7 l4))
SRC_HAL += $(addprefix $(HAL_DIR)/Src/stm32$(MCU_SERIES)xx_, hal_can.c)
endif
endif