only:only BOR needs flash_ex?

This commit is contained in:
Andrey 2023-07-05 00:34:32 -04:00
parent 2d96b69e38
commit a103960186
2 changed files with 1 additions and 2 deletions

View File

@ -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

View File

@ -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