From 449be91e1ab7e27109ea7cc5dd64e182797c5359 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Sat, 18 Feb 2023 11:47:38 +0100 Subject: [PATCH] stm32/Makefile: Include HAL HSEM driver on H747 MCUs. --- ports/stm32/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile index db89b2f4f..fa0f1c5eb 100644 --- a/ports/stm32/Makefile +++ b/ports/stm32/Makefile @@ -450,6 +450,10 @@ HAL_SRC_C += $(addprefix $(STM32LIB_HAL_BASE)/Src/Legacy/stm32$(MCU_SERIES)xx_, $(BUILD)/$(STM32LIB_HAL_BASE)/Src/Legacy/stm32$(MCU_SERIES)xx_hal_can.o: CFLAGS += -Wno-error=cpp endif +ifeq ($(CMSIS_MCU),$(filter $(CMSIS_MCU),STM32H747xx)) + HAL_SRC_C += $(addprefix $(STM32LIB_HAL_BASE)/Src/stm32$(MCU_SERIES)xx_, hal_hsem.c) +endif + ifeq ($(MCU_SERIES),$(filter $(MCU_SERIES),f0 f4 f7 g0 l0)) HAL_SRC_C += $(addprefix $(STM32LIB_HAL_BASE)/Src/stm32$(MCU_SERIES)xx_,\ hal_i2s.c \