From 4dbb77415aabe21ac8810861ddd3b35456a7a1b4 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sat, 6 Feb 2021 00:25:13 -0500 Subject: [PATCH] reducing code duplication --- firmware/hw_layer/ports/stm32/stm32_common.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/firmware/hw_layer/ports/stm32/stm32_common.cpp b/firmware/hw_layer/ports/stm32/stm32_common.cpp index 0b7d245a0d..75147f695a 100644 --- a/firmware/hw_layer/ports/stm32/stm32_common.cpp +++ b/firmware/hw_layer/ports/stm32/stm32_common.cpp @@ -10,6 +10,14 @@ #include "efi_gpio.h" #include "expected.h" +#ifdef STM32F4XX +#include "stm32f4xx_hal_flash.h" +#elif defined(STM32F7XX) +#include "stm32f7xx_hal_flash.h" +#else +#include "stm32h7xx_hal_flash.h" +#endif + #ifndef EFI_PIN_ADC9 #define EFI_PIN_ADC9 GPIOB_1 #endif /* EFI_PIN_ADC9 */