diff --git a/firmware/hw_layer/ports/stm32/port_mpu_util.h b/firmware/hw_layer/ports/stm32/port_mpu_util.h index b8e288f515..769d8c2fe7 100644 --- a/firmware/hw_layer/ports/stm32/port_mpu_util.h +++ b/firmware/hw_layer/ports/stm32/port_mpu_util.h @@ -32,6 +32,7 @@ typedef enum { BOR_Level_3 = PWR_CR_PLS_LEV7 // 0x00 Supply voltage ranges from 2.70 to 3.60 V } BOR_Level_t; #else +#include "stm32f4xx_hal_flash_ex.h" typedef enum { BOR_Level_None = OB_BOR_OFF, // 0x0C=12 Supply voltage ranges from 1.62 to 2.10 V BOR_Level_1 = OB_BOR_LEVEL1, // 0x08 Supply voltage ranges from 2.10 to 2.40 V diff --git a/firmware/hw_layer/ports/stm32/stm32f4/device_mpu_util.h b/firmware/hw_layer/ports/stm32/stm32f4/device_mpu_util.h index 4c016c5ca1..81e2ad7fbf 100644 --- a/firmware/hw_layer/ports/stm32/stm32f4/device_mpu_util.h +++ b/firmware/hw_layer/ports/stm32/stm32f4/device_mpu_util.h @@ -7,8 +7,6 @@ #pragma once -#include "stm32f4xx_hal_flash_ex.h" - #define MCU_SERIAL_NUMBER_LOCATION (uint8_t*)(0x1FFF7A10) #define SPI_CR1_8BIT_MODE 0