diff options
| author | Damien George <damien@micropython.org> | 2024-02-07 14:55:07 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2024-02-07 14:55:07 +1100 |
| commit | b038d070116ccfb1ec785cd6207006783841bccc (patch) | |
| tree | 0628a23ab1d97b1bf55f47248b8dfa16050eb661 | |
| parent | 657faee7e5c44552ba39dea00d4c0d12ef09ca30 (diff) | |
stm32/Makefile: Ignore uninitialised variable warning in H5 HAL SD code.
This warning appears when using an MCU like H562 that only has one SDMMC.
Signed-off-by: Damien George <damien@micropython.org>
| -rw-r--r-- | ports/stm32/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile index e44a54239..2947e4119 100644 --- a/ports/stm32/Makefile +++ b/ports/stm32/Makefile @@ -338,6 +338,10 @@ HAL_SRC_C += $(addprefix $(STM32LIB_HAL_BASE)/Src/stm32$(MCU_SERIES)xx_,\ ll_sdmmc.c \ ll_fmc.c \ ) +ifeq ($(MCU_SERIES),$(filter $(MCU_SERIES),h5)) +# HAL H5-1.0.0 has a bug with uninitialised variable in HAL_SD_ConfigWideBusOperation. +$(BUILD)/$(STM32LIB_HAL_BASE)/Src/stm32$(MCU_SERIES)xx_hal_sd.o: CFLAGS += -Wno-error=maybe-uninitialized +endif endif ifeq ($(MCU_SERIES),$(filter $(MCU_SERIES),f4 f7 h7)) |
