The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
TARGET_NUCLEO_F030R8/TARGET_STM/TARGET_STM32F0/device/stm32f0xx_hal_flash_ex.h@143:86740a56073b, 2017-05-26 (annotated)
- Committer:
- AnnaBridge
- Date:
- Fri May 26 12:30:20 2017 +0100
- Revision:
- 143:86740a56073b
- Parent:
- 134:ad3be0349dc5
Release 143 of the mbed library.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 85:024bf7f99721 | 1 | /** |
bogdanm | 85:024bf7f99721 | 2 | ****************************************************************************** |
bogdanm | 85:024bf7f99721 | 3 | * @file stm32f0xx_hal_flash_ex.h |
bogdanm | 85:024bf7f99721 | 4 | * @author MCD Application Team |
<> | 134:ad3be0349dc5 | 5 | * @version V1.5.0 |
<> | 134:ad3be0349dc5 | 6 | * @date 04-November-2016 |
Kojto | 108:34e6b704fe68 | 7 | * @brief Header file of Flash HAL Extended module. |
bogdanm | 85:024bf7f99721 | 8 | ****************************************************************************** |
bogdanm | 85:024bf7f99721 | 9 | * @attention |
bogdanm | 85:024bf7f99721 | 10 | * |
Kojto | 122:f9eeca106725 | 11 | * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> |
bogdanm | 85:024bf7f99721 | 12 | * |
bogdanm | 85:024bf7f99721 | 13 | * Redistribution and use in source and binary forms, with or without modification, |
bogdanm | 85:024bf7f99721 | 14 | * are permitted provided that the following conditions are met: |
bogdanm | 85:024bf7f99721 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
bogdanm | 85:024bf7f99721 | 16 | * this list of conditions and the following disclaimer. |
bogdanm | 85:024bf7f99721 | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
bogdanm | 85:024bf7f99721 | 18 | * this list of conditions and the following disclaimer in the documentation |
bogdanm | 85:024bf7f99721 | 19 | * and/or other materials provided with the distribution. |
bogdanm | 85:024bf7f99721 | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
bogdanm | 85:024bf7f99721 | 21 | * may be used to endorse or promote products derived from this software |
bogdanm | 85:024bf7f99721 | 22 | * without specific prior written permission. |
bogdanm | 85:024bf7f99721 | 23 | * |
bogdanm | 85:024bf7f99721 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
bogdanm | 85:024bf7f99721 | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
bogdanm | 85:024bf7f99721 | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
bogdanm | 85:024bf7f99721 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
bogdanm | 85:024bf7f99721 | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
bogdanm | 85:024bf7f99721 | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
bogdanm | 85:024bf7f99721 | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
bogdanm | 85:024bf7f99721 | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
bogdanm | 85:024bf7f99721 | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
bogdanm | 85:024bf7f99721 | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
bogdanm | 85:024bf7f99721 | 34 | * |
bogdanm | 85:024bf7f99721 | 35 | ****************************************************************************** |
bogdanm | 85:024bf7f99721 | 36 | */ |
bogdanm | 85:024bf7f99721 | 37 | |
bogdanm | 85:024bf7f99721 | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
bogdanm | 85:024bf7f99721 | 39 | #ifndef __STM32F0xx_HAL_FLASH_EX_H |
bogdanm | 85:024bf7f99721 | 40 | #define __STM32F0xx_HAL_FLASH_EX_H |
bogdanm | 85:024bf7f99721 | 41 | |
bogdanm | 85:024bf7f99721 | 42 | #ifdef __cplusplus |
bogdanm | 85:024bf7f99721 | 43 | extern "C" { |
bogdanm | 85:024bf7f99721 | 44 | #endif |
bogdanm | 85:024bf7f99721 | 45 | |
bogdanm | 85:024bf7f99721 | 46 | /* Includes ------------------------------------------------------------------*/ |
bogdanm | 85:024bf7f99721 | 47 | #include "stm32f0xx_hal_def.h" |
bogdanm | 85:024bf7f99721 | 48 | |
bogdanm | 85:024bf7f99721 | 49 | /** @addtogroup STM32F0xx_HAL_Driver |
bogdanm | 85:024bf7f99721 | 50 | * @{ |
bogdanm | 85:024bf7f99721 | 51 | */ |
bogdanm | 85:024bf7f99721 | 52 | |
bogdanm | 85:024bf7f99721 | 53 | /** @addtogroup FLASHEx |
bogdanm | 85:024bf7f99721 | 54 | * @{ |
bogdanm | 85:024bf7f99721 | 55 | */ |
bogdanm | 85:024bf7f99721 | 56 | |
Kojto | 108:34e6b704fe68 | 57 | /** @addtogroup FLASHEx_Private_Macros |
Kojto | 108:34e6b704fe68 | 58 | * @{ |
Kojto | 108:34e6b704fe68 | 59 | */ |
Kojto | 108:34e6b704fe68 | 60 | #define IS_FLASH_TYPEERASE(VALUE) (((VALUE) == FLASH_TYPEERASE_PAGES) || \ |
Kojto | 108:34e6b704fe68 | 61 | ((VALUE) == FLASH_TYPEERASE_MASSERASE)) |
Kojto | 108:34e6b704fe68 | 62 | |
Kojto | 108:34e6b704fe68 | 63 | #define IS_OPTIONBYTE(VALUE) ((VALUE) <= (OPTIONBYTE_WRP | OPTIONBYTE_RDP | OPTIONBYTE_USER | OPTIONBYTE_DATA)) |
Kojto | 108:34e6b704fe68 | 64 | |
Kojto | 108:34e6b704fe68 | 65 | #define IS_WRPSTATE(VALUE) (((VALUE) == OB_WRPSTATE_DISABLE) || \ |
Kojto | 108:34e6b704fe68 | 66 | ((VALUE) == OB_WRPSTATE_ENABLE)) |
Kojto | 108:34e6b704fe68 | 67 | |
Kojto | 108:34e6b704fe68 | 68 | #define IS_OB_DATA_ADDRESS(ADDRESS) (((ADDRESS) == OB_DATA_ADDRESS_DATA0) || ((ADDRESS) == OB_DATA_ADDRESS_DATA1)) |
Kojto | 108:34e6b704fe68 | 69 | |
Kojto | 108:34e6b704fe68 | 70 | #define IS_OB_RDP_LEVEL(LEVEL) (((LEVEL) == OB_RDP_LEVEL_0) ||\ |
Kojto | 108:34e6b704fe68 | 71 | ((LEVEL) == OB_RDP_LEVEL_1))/*||\ |
Kojto | 108:34e6b704fe68 | 72 | ((LEVEL) == OB_RDP_LEVEL_2))*/ |
Kojto | 122:f9eeca106725 | 73 | |
Kojto | 108:34e6b704fe68 | 74 | #define IS_OB_IWDG_SOURCE(SOURCE) (((SOURCE) == OB_IWDG_SW) || ((SOURCE) == OB_IWDG_HW)) |
Kojto | 108:34e6b704fe68 | 75 | |
Kojto | 108:34e6b704fe68 | 76 | #define IS_OB_STOP_SOURCE(SOURCE) (((SOURCE) == OB_STOP_NO_RST) || ((SOURCE) == OB_STOP_RST)) |
Kojto | 108:34e6b704fe68 | 77 | |
Kojto | 108:34e6b704fe68 | 78 | #define IS_OB_STDBY_SOURCE(SOURCE) (((SOURCE) == OB_STDBY_NO_RST) || ((SOURCE) == OB_STDBY_RST)) |
Kojto | 108:34e6b704fe68 | 79 | |
Kojto | 108:34e6b704fe68 | 80 | #define IS_OB_BOOT1(BOOT1) (((BOOT1) == OB_BOOT1_RESET) || ((BOOT1) == OB_BOOT1_SET)) |
Kojto | 108:34e6b704fe68 | 81 | |
Kojto | 108:34e6b704fe68 | 82 | #define IS_OB_VDDA_ANALOG(ANALOG) (((ANALOG) == OB_VDDA_ANALOG_ON) || ((ANALOG) == OB_VDDA_ANALOG_OFF)) |
Kojto | 108:34e6b704fe68 | 83 | |
Kojto | 122:f9eeca106725 | 84 | #define IS_OB_SRAM_PARITY(PARITY) (((PARITY) == OB_SRAM_PARITY_SET) || ((PARITY) == OB_SRAM_PARITY_RESET)) |
Kojto | 108:34e6b704fe68 | 85 | |
Kojto | 108:34e6b704fe68 | 86 | #if defined(FLASH_OBR_BOOT_SEL) |
Kojto | 108:34e6b704fe68 | 87 | #define IS_OB_BOOT_SEL(BOOT_SEL) (((BOOT_SEL) == OB_BOOT_SEL_RESET) || ((BOOT_SEL) == OB_BOOT_SEL_SET)) |
Kojto | 108:34e6b704fe68 | 88 | #define IS_OB_BOOT0(BOOT0) (((BOOT0) == OB_BOOT0_RESET) || ((BOOT0) == OB_BOOT0_SET)) |
Kojto | 108:34e6b704fe68 | 89 | #endif /* FLASH_OBR_BOOT_SEL */ |
Kojto | 108:34e6b704fe68 | 90 | |
Kojto | 108:34e6b704fe68 | 91 | |
<> | 134:ad3be0349dc5 | 92 | #define IS_OB_WRP(PAGE) (((PAGE) != 0x0000000U)) |
Kojto | 108:34e6b704fe68 | 93 | |
Kojto | 122:f9eeca106725 | 94 | #define IS_FLASH_NB_PAGES(ADDRESS,NBPAGES) ((ADDRESS)+((NBPAGES)*FLASH_PAGE_SIZE)-1 <= FLASH_BANK1_END) |
Kojto | 122:f9eeca106725 | 95 | |
Kojto | 108:34e6b704fe68 | 96 | #define IS_FLASH_PROGRAM_ADDRESS(ADDRESS) (((ADDRESS) >= FLASH_BASE) && ((ADDRESS) <= FLASH_BANK1_END)) |
Kojto | 108:34e6b704fe68 | 97 | |
Kojto | 108:34e6b704fe68 | 98 | /** |
Kojto | 108:34e6b704fe68 | 99 | * @} |
Kojto | 122:f9eeca106725 | 100 | */ |
Kojto | 122:f9eeca106725 | 101 | |
bogdanm | 85:024bf7f99721 | 102 | /* Exported types ------------------------------------------------------------*/ |
Kojto | 108:34e6b704fe68 | 103 | /** @defgroup FLASHEx_Exported_Types FLASHEx Exported Types |
Kojto | 108:34e6b704fe68 | 104 | * @{ |
Kojto | 122:f9eeca106725 | 105 | */ |
Kojto | 108:34e6b704fe68 | 106 | /** |
Kojto | 108:34e6b704fe68 | 107 | * @brief FLASH Erase structure definition |
Kojto | 108:34e6b704fe68 | 108 | */ |
Kojto | 108:34e6b704fe68 | 109 | typedef struct |
Kojto | 108:34e6b704fe68 | 110 | { |
Kojto | 108:34e6b704fe68 | 111 | uint32_t TypeErase; /*!< TypeErase: Mass erase or page erase. |
Kojto | 108:34e6b704fe68 | 112 | This parameter can be a value of @ref FLASHEx_Type_Erase */ |
Kojto | 108:34e6b704fe68 | 113 | |
Kojto | 108:34e6b704fe68 | 114 | uint32_t PageAddress; /*!< PageAdress: Initial FLASH page address to erase when mass erase is disabled |
Kojto | 108:34e6b704fe68 | 115 | This parameter must be a number between Min_Data = FLASH_BASE and Max_Data = FLASH_BANK1_END */ |
Kojto | 108:34e6b704fe68 | 116 | |
Kojto | 108:34e6b704fe68 | 117 | uint32_t NbPages; /*!< NbPages: Number of pagess to be erased. |
Kojto | 108:34e6b704fe68 | 118 | This parameter must be a value between Min_Data = 1 and Max_Data = (max number of pages - value of initial page)*/ |
Kojto | 108:34e6b704fe68 | 119 | |
Kojto | 108:34e6b704fe68 | 120 | } FLASH_EraseInitTypeDef; |
Kojto | 108:34e6b704fe68 | 121 | |
Kojto | 108:34e6b704fe68 | 122 | /** |
Kojto | 108:34e6b704fe68 | 123 | * @brief FLASH Options bytes program structure definition |
Kojto | 108:34e6b704fe68 | 124 | */ |
Kojto | 108:34e6b704fe68 | 125 | typedef struct |
Kojto | 108:34e6b704fe68 | 126 | { |
Kojto | 108:34e6b704fe68 | 127 | uint32_t OptionType; /*!< OptionType: Option byte to be configured. |
Kojto | 108:34e6b704fe68 | 128 | This parameter can be a value of @ref FLASHEx_OB_Type */ |
Kojto | 108:34e6b704fe68 | 129 | |
Kojto | 108:34e6b704fe68 | 130 | uint32_t WRPState; /*!< WRPState: Write protection activation or deactivation. |
Kojto | 108:34e6b704fe68 | 131 | This parameter can be a value of @ref FLASHEx_OB_WRP_State */ |
Kojto | 108:34e6b704fe68 | 132 | |
Kojto | 108:34e6b704fe68 | 133 | uint32_t WRPPage; /*!< WRPPage: specifies the page(s) to be write protected |
Kojto | 108:34e6b704fe68 | 134 | This parameter can be a value of @ref FLASHEx_OB_Write_Protection */ |
Kojto | 108:34e6b704fe68 | 135 | |
Kojto | 108:34e6b704fe68 | 136 | uint8_t RDPLevel; /*!< RDPLevel: Set the read protection level.. |
Kojto | 108:34e6b704fe68 | 137 | This parameter can be a value of @ref FLASHEx_OB_Read_Protection */ |
Kojto | 108:34e6b704fe68 | 138 | |
Kojto | 108:34e6b704fe68 | 139 | uint8_t USERConfig; /*!< USERConfig: Program the FLASH User Option Byte: |
Kojto | 108:34e6b704fe68 | 140 | IWDG / STOP / STDBY / BOOT1 / VDDA_ANALOG / SRAM_PARITY |
Kojto | 122:f9eeca106725 | 141 | This parameter can be a combination of @ref FLASHEx_OB_IWatchdog, @ref FLASHEx_OB_nRST_STOP, |
Kojto | 108:34e6b704fe68 | 142 | @ref FLASHEx_OB_nRST_STDBY, @ref FLASHEx_OB_BOOT1, @ref FLASHEx_OB_VDDA_Analog_Monitoring and |
Kojto | 108:34e6b704fe68 | 143 | @ref FLASHEx_OB_RAM_Parity_Check_Enable */ |
Kojto | 108:34e6b704fe68 | 144 | |
Kojto | 108:34e6b704fe68 | 145 | uint32_t DATAAddress; /*!< DATAAddress: Address of the option byte DATA to be programmed |
Kojto | 108:34e6b704fe68 | 146 | This parameter can be a value of @ref FLASHEx_OB_Data_Address */ |
Kojto | 108:34e6b704fe68 | 147 | |
Kojto | 108:34e6b704fe68 | 148 | uint8_t DATAData; /*!< DATAData: Data to be stored in the option byte DATA |
Kojto | 108:34e6b704fe68 | 149 | This parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF */ |
Kojto | 108:34e6b704fe68 | 150 | } FLASH_OBProgramInitTypeDef; |
Kojto | 108:34e6b704fe68 | 151 | /** |
Kojto | 108:34e6b704fe68 | 152 | * @} |
Kojto | 108:34e6b704fe68 | 153 | */ |
Kojto | 108:34e6b704fe68 | 154 | |
bogdanm | 92:4fc01daae5a5 | 155 | /* Exported constants --------------------------------------------------------*/ |
bogdanm | 92:4fc01daae5a5 | 156 | /** @defgroup FLASHEx_Exported_Constants FLASHEx Exported Constants |
bogdanm | 85:024bf7f99721 | 157 | * @{ |
Kojto | 122:f9eeca106725 | 158 | */ |
Kojto | 122:f9eeca106725 | 159 | |
bogdanm | 92:4fc01daae5a5 | 160 | /** @defgroup FLASHEx_Page_Size FLASHEx Page Size |
bogdanm | 85:024bf7f99721 | 161 | * @{ |
bogdanm | 85:024bf7f99721 | 162 | */ |
Kojto | 108:34e6b704fe68 | 163 | #if defined(STM32F030x6) || defined(STM32F030x8) || defined(STM32F031x6) || defined(STM32F038xx) \ |
Kojto | 108:34e6b704fe68 | 164 | || defined(STM32F051x8) || defined(STM32F042x6) || defined(STM32F048xx) || defined(STM32F058xx) || defined(STM32F070x6) |
<> | 134:ad3be0349dc5 | 165 | #define FLASH_PAGE_SIZE 0x400U |
Kojto | 93:e188a91d3eaa | 166 | #endif /* STM32F030x6 || STM32F030x8 || STM32F031x6 || STM32F051x8 || STM32F042x6 || STM32F048xx || STM32F058xx || STM32F070x6 */ |
bogdanm | 85:024bf7f99721 | 167 | |
Kojto | 108:34e6b704fe68 | 168 | #if defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F070xB) \ |
Kojto | 108:34e6b704fe68 | 169 | || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F030xC) |
<> | 134:ad3be0349dc5 | 170 | #define FLASH_PAGE_SIZE 0x800U |
Kojto | 93:e188a91d3eaa | 171 | #endif /* STM32F071xB || STM32F072xB || STM32F078xx || STM32F091xC || STM32F098xx || STM32F030xC */ |
bogdanm | 85:024bf7f99721 | 172 | /** |
bogdanm | 85:024bf7f99721 | 173 | * @} |
bogdanm | 85:024bf7f99721 | 174 | */ |
Kojto | 122:f9eeca106725 | 175 | |
Kojto | 108:34e6b704fe68 | 176 | /** @defgroup FLASHEx_Type_Erase FLASH Type Erase |
Kojto | 108:34e6b704fe68 | 177 | * @{ |
Kojto | 108:34e6b704fe68 | 178 | */ |
<> | 134:ad3be0349dc5 | 179 | #define FLASH_TYPEERASE_PAGES (0x00U) /*!<Pages erase only*/ |
<> | 134:ad3be0349dc5 | 180 | #define FLASH_TYPEERASE_MASSERASE (0x01U) /*!<Flash mass erase activation*/ |
bogdanm | 85:024bf7f99721 | 181 | |
Kojto | 108:34e6b704fe68 | 182 | /** |
Kojto | 108:34e6b704fe68 | 183 | * @} |
Kojto | 108:34e6b704fe68 | 184 | */ |
Kojto | 108:34e6b704fe68 | 185 | |
Kojto | 122:f9eeca106725 | 186 | /** @defgroup FLASHEx_OptionByte_Constants Option Byte Constants |
Kojto | 122:f9eeca106725 | 187 | * @{ |
Kojto | 122:f9eeca106725 | 188 | */ |
Kojto | 122:f9eeca106725 | 189 | |
Kojto | 122:f9eeca106725 | 190 | /** @defgroup FLASHEx_OB_Type Option Bytes Type |
bogdanm | 85:024bf7f99721 | 191 | * @{ |
bogdanm | 85:024bf7f99721 | 192 | */ |
<> | 134:ad3be0349dc5 | 193 | #define OPTIONBYTE_WRP (0x01U) /*!<WRP option byte configuration*/ |
<> | 134:ad3be0349dc5 | 194 | #define OPTIONBYTE_RDP (0x02U) /*!<RDP option byte configuration*/ |
<> | 134:ad3be0349dc5 | 195 | #define OPTIONBYTE_USER (0x04U) /*!<USER option byte configuration*/ |
<> | 134:ad3be0349dc5 | 196 | #define OPTIONBYTE_DATA (0x08U) /*!<DATA option byte configuration*/ |
bogdanm | 85:024bf7f99721 | 197 | |
Kojto | 108:34e6b704fe68 | 198 | /** |
Kojto | 108:34e6b704fe68 | 199 | * @} |
Kojto | 108:34e6b704fe68 | 200 | */ |
Kojto | 108:34e6b704fe68 | 201 | |
Kojto | 122:f9eeca106725 | 202 | /** @defgroup FLASHEx_OB_WRP_State Option Byte WRP State |
Kojto | 108:34e6b704fe68 | 203 | * @{ |
Kojto | 108:34e6b704fe68 | 204 | */ |
<> | 134:ad3be0349dc5 | 205 | #define OB_WRPSTATE_DISABLE (0x00U) /*!<Disable the write protection of the desired pages*/ |
<> | 134:ad3be0349dc5 | 206 | #define OB_WRPSTATE_ENABLE (0x01U) /*!<Enable the write protection of the desired pagess*/ |
Kojto | 108:34e6b704fe68 | 207 | |
bogdanm | 85:024bf7f99721 | 208 | /** |
bogdanm | 85:024bf7f99721 | 209 | * @} |
bogdanm | 85:024bf7f99721 | 210 | */ |
bogdanm | 85:024bf7f99721 | 211 | |
bogdanm | 92:4fc01daae5a5 | 212 | /** @defgroup FLASHEx_OB_Write_Protection FLASHEx OB Write Protection |
bogdanm | 85:024bf7f99721 | 213 | * @{ |
bogdanm | 85:024bf7f99721 | 214 | */ |
Kojto | 108:34e6b704fe68 | 215 | #if defined(STM32F030x6) || defined(STM32F030x8) || defined(STM32F031x6) || defined(STM32F038xx) \ |
Kojto | 108:34e6b704fe68 | 216 | || defined(STM32F051x8) || defined(STM32F042x6) || defined(STM32F048xx) || defined(STM32F058xx) || defined(STM32F070x6) |
<> | 134:ad3be0349dc5 | 217 | #define OB_WRP_PAGES0TO3 (0x00000001U) /* Write protection of page 0 to 3 */ |
<> | 134:ad3be0349dc5 | 218 | #define OB_WRP_PAGES4TO7 (0x00000002U) /* Write protection of page 4 to 7 */ |
<> | 134:ad3be0349dc5 | 219 | #define OB_WRP_PAGES8TO11 (0x00000004U) /* Write protection of page 8 to 11 */ |
<> | 134:ad3be0349dc5 | 220 | #define OB_WRP_PAGES12TO15 (0x00000008U) /* Write protection of page 12 to 15 */ |
<> | 134:ad3be0349dc5 | 221 | #define OB_WRP_PAGES16TO19 (0x00000010U) /* Write protection of page 16 to 19 */ |
<> | 134:ad3be0349dc5 | 222 | #define OB_WRP_PAGES20TO23 (0x00000020U) /* Write protection of page 20 to 23 */ |
<> | 134:ad3be0349dc5 | 223 | #define OB_WRP_PAGES24TO27 (0x00000040U) /* Write protection of page 24 to 27 */ |
<> | 134:ad3be0349dc5 | 224 | #define OB_WRP_PAGES28TO31 (0x00000080U) /* Write protection of page 28 to 31 */ |
bogdanm | 85:024bf7f99721 | 225 | #if defined(STM32F030x8) || defined(STM32F051x8) || defined(STM32F058xx) |
<> | 134:ad3be0349dc5 | 226 | #define OB_WRP_PAGES32TO35 (0x00000100U) /* Write protection of page 32 to 35 */ |
<> | 134:ad3be0349dc5 | 227 | #define OB_WRP_PAGES36TO39 (0x00000200U) /* Write protection of page 36 to 39 */ |
<> | 134:ad3be0349dc5 | 228 | #define OB_WRP_PAGES40TO43 (0x00000400U) /* Write protection of page 40 to 43 */ |
<> | 134:ad3be0349dc5 | 229 | #define OB_WRP_PAGES44TO47 (0x00000800U) /* Write protection of page 44 to 47 */ |
<> | 134:ad3be0349dc5 | 230 | #define OB_WRP_PAGES48TO51 (0x00001000U) /* Write protection of page 48 to 51 */ |
<> | 134:ad3be0349dc5 | 231 | #define OB_WRP_PAGES52TO57 (0x00002000U) /* Write protection of page 52 to 57 */ |
<> | 134:ad3be0349dc5 | 232 | #define OB_WRP_PAGES56TO59 (0x00004000U) /* Write protection of page 56 to 59 */ |
<> | 134:ad3be0349dc5 | 233 | #define OB_WRP_PAGES60TO63 (0x00008000U) /* Write protection of page 60 to 63 */ |
bogdanm | 85:024bf7f99721 | 234 | #endif /* STM32F030x8 || STM32F051x8 || STM32F058xx */ |
bogdanm | 85:024bf7f99721 | 235 | |
Kojto | 108:34e6b704fe68 | 236 | #if defined(STM32F030x6) || defined(STM32F030x8) || defined(STM32F031x6) || defined(STM32F038xx) \ |
Kojto | 108:34e6b704fe68 | 237 | || defined(STM32F051x8) || defined(STM32F042x6) || defined(STM32F048xx) || defined(STM32F058xx) || defined(STM32F070x6) |
<> | 134:ad3be0349dc5 | 238 | #define OB_WRP_PAGES0TO31MASK (0x000000FFU) |
Kojto | 108:34e6b704fe68 | 239 | #endif /* STM32F030x6 || STM32F030x8 || STM32F031x6 || STM32F051x8 || STM32F042x6 || STM32F048xx || STM32F038xx || STM32F058xx || STM32F070x6 */ |
Kojto | 108:34e6b704fe68 | 240 | |
bogdanm | 85:024bf7f99721 | 241 | #if defined(STM32F030x8) || defined(STM32F051x8) || defined(STM32F058xx) |
<> | 134:ad3be0349dc5 | 242 | #define OB_WRP_PAGES32TO63MASK (0x0000FF00U) |
bogdanm | 85:024bf7f99721 | 243 | #endif /* STM32F030x8 || STM32F051x8 || STM32F058xx */ |
bogdanm | 85:024bf7f99721 | 244 | |
Kojto | 93:e188a91d3eaa | 245 | #if defined(STM32F030x6) || defined(STM32F031x6) || defined(STM32F042x6) || defined(STM32F048xx) || defined(STM32F038xx)|| defined(STM32F070x6) |
<> | 134:ad3be0349dc5 | 246 | #define OB_WRP_ALLPAGES (0x000000FFU) /*!< Write protection of all pages */ |
Kojto | 93:e188a91d3eaa | 247 | #endif /* STM32F030x6 || STM32F031x6 || STM32F042x6 || STM32F048xx || STM32F038xx || STM32F070x6 */ |
bogdanm | 85:024bf7f99721 | 248 | |
bogdanm | 85:024bf7f99721 | 249 | #if defined(STM32F030x8) || defined(STM32F051x8) || defined(STM32F058xx) |
<> | 134:ad3be0349dc5 | 250 | #define OB_WRP_ALLPAGES (0x0000FFFFU) /*!< Write protection of all pages */ |
bogdanm | 85:024bf7f99721 | 251 | #endif /* STM32F030x8 || STM32F051x8 || STM32F058xx */ |
Kojto | 93:e188a91d3eaa | 252 | #endif /* STM32F030x6 || STM32F030x8 || STM32F031x6 || STM32F051x8 || STM32F042x6 || STM32F048xx || STM32F038xx || STM32F058xx || STM32F070x6 */ |
bogdanm | 85:024bf7f99721 | 253 | |
Kojto | 108:34e6b704fe68 | 254 | #if defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F070xB) \ |
Kojto | 108:34e6b704fe68 | 255 | || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F030xC) |
<> | 134:ad3be0349dc5 | 256 | #define OB_WRP_PAGES0TO1 (0x00000001U) /* Write protection of page 0 to 1 */ |
<> | 134:ad3be0349dc5 | 257 | #define OB_WRP_PAGES2TO3 (0x00000002U) /* Write protection of page 2 to 3 */ |
<> | 134:ad3be0349dc5 | 258 | #define OB_WRP_PAGES4TO5 (0x00000004U) /* Write protection of page 4 to 5 */ |
<> | 134:ad3be0349dc5 | 259 | #define OB_WRP_PAGES6TO7 (0x00000008U) /* Write protection of page 6 to 7 */ |
<> | 134:ad3be0349dc5 | 260 | #define OB_WRP_PAGES8TO9 (0x00000010U) /* Write protection of page 8 to 9 */ |
<> | 134:ad3be0349dc5 | 261 | #define OB_WRP_PAGES10TO11 (0x00000020U) /* Write protection of page 10 to 11 */ |
<> | 134:ad3be0349dc5 | 262 | #define OB_WRP_PAGES12TO13 (0x00000040U) /* Write protection of page 12 to 13 */ |
<> | 134:ad3be0349dc5 | 263 | #define OB_WRP_PAGES14TO15 (0x00000080U) /* Write protection of page 14 to 15 */ |
<> | 134:ad3be0349dc5 | 264 | #define OB_WRP_PAGES16TO17 (0x00000100U) /* Write protection of page 16 to 17 */ |
<> | 134:ad3be0349dc5 | 265 | #define OB_WRP_PAGES18TO19 (0x00000200U) /* Write protection of page 18 to 19 */ |
<> | 134:ad3be0349dc5 | 266 | #define OB_WRP_PAGES20TO21 (0x00000400U) /* Write protection of page 20 to 21 */ |
<> | 134:ad3be0349dc5 | 267 | #define OB_WRP_PAGES22TO23 (0x00000800U) /* Write protection of page 22 to 23 */ |
<> | 134:ad3be0349dc5 | 268 | #define OB_WRP_PAGES24TO25 (0x00001000U) /* Write protection of page 24 to 25 */ |
<> | 134:ad3be0349dc5 | 269 | #define OB_WRP_PAGES26TO27 (0x00002000U) /* Write protection of page 26 to 27 */ |
<> | 134:ad3be0349dc5 | 270 | #define OB_WRP_PAGES28TO29 (0x00004000U) /* Write protection of page 28 to 29 */ |
<> | 134:ad3be0349dc5 | 271 | #define OB_WRP_PAGES30TO31 (0x00008000U) /* Write protection of page 30 to 31 */ |
<> | 134:ad3be0349dc5 | 272 | #define OB_WRP_PAGES32TO33 (0x00010000U) /* Write protection of page 32 to 33 */ |
<> | 134:ad3be0349dc5 | 273 | #define OB_WRP_PAGES34TO35 (0x00020000U) /* Write protection of page 34 to 35 */ |
<> | 134:ad3be0349dc5 | 274 | #define OB_WRP_PAGES36TO37 (0x00040000U) /* Write protection of page 36 to 37 */ |
<> | 134:ad3be0349dc5 | 275 | #define OB_WRP_PAGES38TO39 (0x00080000U) /* Write protection of page 38 to 39 */ |
<> | 134:ad3be0349dc5 | 276 | #define OB_WRP_PAGES40TO41 (0x00100000U) /* Write protection of page 40 to 41 */ |
<> | 134:ad3be0349dc5 | 277 | #define OB_WRP_PAGES42TO43 (0x00200000U) /* Write protection of page 42 to 43 */ |
<> | 134:ad3be0349dc5 | 278 | #define OB_WRP_PAGES44TO45 (0x00400000U) /* Write protection of page 44 to 45 */ |
<> | 134:ad3be0349dc5 | 279 | #define OB_WRP_PAGES46TO47 (0x00800000U) /* Write protection of page 46 to 47 */ |
<> | 134:ad3be0349dc5 | 280 | #define OB_WRP_PAGES48TO49 (0x01000000U) /* Write protection of page 48 to 49 */ |
<> | 134:ad3be0349dc5 | 281 | #define OB_WRP_PAGES50TO51 (0x02000000U) /* Write protection of page 50 to 51 */ |
<> | 134:ad3be0349dc5 | 282 | #define OB_WRP_PAGES52TO53 (0x04000000U) /* Write protection of page 52 to 53 */ |
<> | 134:ad3be0349dc5 | 283 | #define OB_WRP_PAGES54TO55 (0x08000000U) /* Write protection of page 54 to 55 */ |
<> | 134:ad3be0349dc5 | 284 | #define OB_WRP_PAGES56TO57 (0x10000000U) /* Write protection of page 56 to 57 */ |
<> | 134:ad3be0349dc5 | 285 | #define OB_WRP_PAGES58TO59 (0x20000000U) /* Write protection of page 58 to 59 */ |
<> | 134:ad3be0349dc5 | 286 | #define OB_WRP_PAGES60TO61 (0x40000000U) /* Write protection of page 60 to 61 */ |
Kojto | 93:e188a91d3eaa | 287 | #if defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F070xB) |
<> | 134:ad3be0349dc5 | 288 | #define OB_WRP_PAGES62TO63 (0x80000000U) /* Write protection of page 62 to 63 */ |
Kojto | 93:e188a91d3eaa | 289 | #endif /* STM32F071xB || STM32F072xB || STM32F078xx || STM32F070xB */ |
Kojto | 93:e188a91d3eaa | 290 | #if defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F030xC) |
<> | 134:ad3be0349dc5 | 291 | #define OB_WRP_PAGES62TO127 (0x80000000U) /* Write protection of page 62 to 127 */ |
Kojto | 93:e188a91d3eaa | 292 | #endif /* STM32F091xC || STM32F098xx || STM32F030xC */ |
bogdanm | 85:024bf7f99721 | 293 | |
Kojto | 108:34e6b704fe68 | 294 | #if defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F070xB) \ |
Kojto | 108:34e6b704fe68 | 295 | || defined(STM32F091xC) || defined(STM32F098xx)|| defined(STM32F030xC) |
<> | 134:ad3be0349dc5 | 296 | #define OB_WRP_PAGES0TO15MASK (0x000000FFU) |
<> | 134:ad3be0349dc5 | 297 | #define OB_WRP_PAGES16TO31MASK (0x0000FF00U) |
<> | 134:ad3be0349dc5 | 298 | #define OB_WRP_PAGES32TO47MASK (0x00FF0000U) |
Kojto | 108:34e6b704fe68 | 299 | #endif /* STM32F071xB || STM32F072xB || STM32F078xx || STM32F091xC || STM32F098xx || STM32F070xB || STM32F030xC */ |
Kojto | 108:34e6b704fe68 | 300 | |
Kojto | 93:e188a91d3eaa | 301 | #if defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F070xB) |
<> | 134:ad3be0349dc5 | 302 | #define OB_WRP_PAGES48TO63MASK (0xFF000000U) |
Kojto | 93:e188a91d3eaa | 303 | #endif /* STM32F071xB || STM32F072xB || STM32F078xx || STM32F070xB */ |
Kojto | 93:e188a91d3eaa | 304 | #if defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F030xC) |
<> | 134:ad3be0349dc5 | 305 | #define OB_WRP_PAGES48TO127MASK (0xFF000000U) |
Kojto | 93:e188a91d3eaa | 306 | #endif /* STM32F091xC || STM32F098xx || STM32F030xC */ |
bogdanm | 85:024bf7f99721 | 307 | |
<> | 134:ad3be0349dc5 | 308 | #define OB_WRP_ALLPAGES (0xFFFFFFFFU) /*!< Write protection of all pages */ |
Kojto | 93:e188a91d3eaa | 309 | #endif /* STM32F071xB || STM32F072xB || STM32F078xx || STM32F091xC || STM32F098xx || STM32F030xC || STM32F070xB */ |
bogdanm | 85:024bf7f99721 | 310 | |
bogdanm | 85:024bf7f99721 | 311 | /** |
bogdanm | 85:024bf7f99721 | 312 | * @} |
bogdanm | 85:024bf7f99721 | 313 | */ |
bogdanm | 85:024bf7f99721 | 314 | |
Kojto | 122:f9eeca106725 | 315 | /** @defgroup FLASHEx_OB_Read_Protection Option Byte Read Protection |
Kojto | 108:34e6b704fe68 | 316 | * @{ |
Kojto | 108:34e6b704fe68 | 317 | */ |
<> | 134:ad3be0349dc5 | 318 | #define OB_RDP_LEVEL_0 ((uint8_t)0xAAU) |
<> | 134:ad3be0349dc5 | 319 | #define OB_RDP_LEVEL_1 ((uint8_t)0xBBU) |
<> | 134:ad3be0349dc5 | 320 | #define OB_RDP_LEVEL_2 ((uint8_t)0xCCU) /*!< Warning: When enabling read protection level 2 |
Kojto | 108:34e6b704fe68 | 321 | it's no more possible to go back to level 1 or 0 */ |
Kojto | 108:34e6b704fe68 | 322 | /** |
Kojto | 108:34e6b704fe68 | 323 | * @} |
Kojto | 122:f9eeca106725 | 324 | */ |
Kojto | 108:34e6b704fe68 | 325 | |
Kojto | 122:f9eeca106725 | 326 | /** @defgroup FLASHEx_OB_IWatchdog Option Byte IWatchdog |
Kojto | 108:34e6b704fe68 | 327 | * @{ |
Kojto | 108:34e6b704fe68 | 328 | */ |
<> | 134:ad3be0349dc5 | 329 | #define OB_IWDG_SW ((uint8_t)0x01U) /*!< Software IWDG selected */ |
<> | 134:ad3be0349dc5 | 330 | #define OB_IWDG_HW ((uint8_t)0x00U) /*!< Hardware IWDG selected */ |
Kojto | 108:34e6b704fe68 | 331 | /** |
Kojto | 108:34e6b704fe68 | 332 | * @} |
Kojto | 122:f9eeca106725 | 333 | */ |
Kojto | 108:34e6b704fe68 | 334 | |
Kojto | 122:f9eeca106725 | 335 | /** @defgroup FLASHEx_OB_nRST_STOP Option Byte nRST STOP |
Kojto | 108:34e6b704fe68 | 336 | * @{ |
Kojto | 108:34e6b704fe68 | 337 | */ |
<> | 134:ad3be0349dc5 | 338 | #define OB_STOP_NO_RST ((uint8_t)0x02U) /*!< No reset generated when entering in STOP */ |
<> | 134:ad3be0349dc5 | 339 | #define OB_STOP_RST ((uint8_t)0x00U) /*!< Reset generated when entering in STOP */ |
Kojto | 108:34e6b704fe68 | 340 | /** |
Kojto | 108:34e6b704fe68 | 341 | * @} |
Kojto | 122:f9eeca106725 | 342 | */ |
Kojto | 108:34e6b704fe68 | 343 | |
Kojto | 122:f9eeca106725 | 344 | /** @defgroup FLASHEx_OB_nRST_STDBY Option Byte nRST STDBY |
Kojto | 108:34e6b704fe68 | 345 | * @{ |
Kojto | 108:34e6b704fe68 | 346 | */ |
<> | 134:ad3be0349dc5 | 347 | #define OB_STDBY_NO_RST ((uint8_t)0x04U) /*!< No reset generated when entering in STANDBY */ |
<> | 134:ad3be0349dc5 | 348 | #define OB_STDBY_RST ((uint8_t)0x00U) /*!< Reset generated when entering in STANDBY */ |
Kojto | 108:34e6b704fe68 | 349 | /** |
Kojto | 108:34e6b704fe68 | 350 | * @} |
Kojto | 122:f9eeca106725 | 351 | */ |
Kojto | 108:34e6b704fe68 | 352 | |
Kojto | 122:f9eeca106725 | 353 | /** @defgroup FLASHEx_OB_BOOT1 Option Byte BOOT1 |
Kojto | 108:34e6b704fe68 | 354 | * @{ |
Kojto | 108:34e6b704fe68 | 355 | */ |
<> | 134:ad3be0349dc5 | 356 | #define OB_BOOT1_RESET ((uint8_t)0x00U) /*!< BOOT1 Reset */ |
<> | 134:ad3be0349dc5 | 357 | #define OB_BOOT1_SET ((uint8_t)0x10U) /*!< BOOT1 Set */ |
Kojto | 108:34e6b704fe68 | 358 | /** |
Kojto | 108:34e6b704fe68 | 359 | * @} |
Kojto | 122:f9eeca106725 | 360 | */ |
Kojto | 108:34e6b704fe68 | 361 | |
Kojto | 122:f9eeca106725 | 362 | /** @defgroup FLASHEx_OB_VDDA_Analog_Monitoring Option Byte VDDA Analog Monitoring |
Kojto | 108:34e6b704fe68 | 363 | * @{ |
Kojto | 108:34e6b704fe68 | 364 | */ |
<> | 134:ad3be0349dc5 | 365 | #define OB_VDDA_ANALOG_ON ((uint8_t)0x20U) /*!< Analog monitoring on VDDA Power source ON */ |
<> | 134:ad3be0349dc5 | 366 | #define OB_VDDA_ANALOG_OFF ((uint8_t)0x00U) /*!< Analog monitoring on VDDA Power source OFF */ |
Kojto | 108:34e6b704fe68 | 367 | /** |
Kojto | 108:34e6b704fe68 | 368 | * @} |
Kojto | 122:f9eeca106725 | 369 | */ |
Kojto | 108:34e6b704fe68 | 370 | |
Kojto | 122:f9eeca106725 | 371 | /** @defgroup FLASHEx_OB_RAM_Parity_Check_Enable Option Byte SRAM Parity Check Enable |
Kojto | 108:34e6b704fe68 | 372 | * @{ |
Kojto | 108:34e6b704fe68 | 373 | */ |
<> | 134:ad3be0349dc5 | 374 | #define OB_SRAM_PARITY_SET ((uint8_t)0x00U) /*!< SRAM parity check enable set */ |
<> | 134:ad3be0349dc5 | 375 | #define OB_SRAM_PARITY_RESET ((uint8_t)0x40U) /*!< SRAM parity check enable reset */ |
Kojto | 108:34e6b704fe68 | 376 | /** |
Kojto | 108:34e6b704fe68 | 377 | * @} |
Kojto | 122:f9eeca106725 | 378 | */ |
Kojto | 122:f9eeca106725 | 379 | |
Kojto | 108:34e6b704fe68 | 380 | #if defined(FLASH_OBR_BOOT_SEL) |
Kojto | 122:f9eeca106725 | 381 | /** @defgroup FLASHEx_OB_BOOT_SEL FLASHEx Option Byte BOOT SEL |
bogdanm | 85:024bf7f99721 | 382 | * @{ |
bogdanm | 85:024bf7f99721 | 383 | */ |
<> | 134:ad3be0349dc5 | 384 | #define OB_BOOT_SEL_RESET ((uint8_t)0x00U) /*!< BOOT_SEL Reset */ |
<> | 134:ad3be0349dc5 | 385 | #define OB_BOOT_SEL_SET ((uint8_t)0x80U) /*!< BOOT_SEL Set */ |
bogdanm | 85:024bf7f99721 | 386 | /** |
bogdanm | 85:024bf7f99721 | 387 | * @} |
bogdanm | 85:024bf7f99721 | 388 | */ |
bogdanm | 85:024bf7f99721 | 389 | |
Kojto | 122:f9eeca106725 | 390 | /** @defgroup FLASHEx_OB_BOOT0 FLASHEx Option Byte BOOT0 |
bogdanm | 85:024bf7f99721 | 391 | * @{ |
bogdanm | 85:024bf7f99721 | 392 | */ |
<> | 134:ad3be0349dc5 | 393 | #define OB_BOOT0_RESET ((uint8_t)0x00U) /*!< BOOT0 Reset */ |
<> | 134:ad3be0349dc5 | 394 | #define OB_BOOT0_SET ((uint8_t)0x08U) /*!< BOOT0 Set */ |
bogdanm | 85:024bf7f99721 | 395 | /** |
bogdanm | 85:024bf7f99721 | 396 | * @} |
Kojto | 122:f9eeca106725 | 397 | */ |
Kojto | 108:34e6b704fe68 | 398 | #endif /* FLASH_OBR_BOOT_SEL */ |
Kojto | 108:34e6b704fe68 | 399 | |
Kojto | 122:f9eeca106725 | 400 | |
Kojto | 108:34e6b704fe68 | 401 | /** @defgroup FLASHEx_OB_Data_Address Option Byte Data Address |
Kojto | 108:34e6b704fe68 | 402 | * @{ |
Kojto | 108:34e6b704fe68 | 403 | */ |
<> | 134:ad3be0349dc5 | 404 | #define OB_DATA_ADDRESS_DATA0 (0x1FFFF804U) |
<> | 134:ad3be0349dc5 | 405 | #define OB_DATA_ADDRESS_DATA1 (0x1FFFF806U) |
Kojto | 108:34e6b704fe68 | 406 | /** |
Kojto | 108:34e6b704fe68 | 407 | * @} |
Kojto | 108:34e6b704fe68 | 408 | */ |
bogdanm | 85:024bf7f99721 | 409 | |
bogdanm | 85:024bf7f99721 | 410 | /** |
bogdanm | 85:024bf7f99721 | 411 | * @} |
Kojto | 122:f9eeca106725 | 412 | */ |
Kojto | 122:f9eeca106725 | 413 | |
Kojto | 122:f9eeca106725 | 414 | /** |
Kojto | 122:f9eeca106725 | 415 | * @} |
Kojto | 122:f9eeca106725 | 416 | */ |
bogdanm | 85:024bf7f99721 | 417 | |
bogdanm | 85:024bf7f99721 | 418 | /* Exported functions --------------------------------------------------------*/ |
Kojto | 108:34e6b704fe68 | 419 | /** @addtogroup FLASHEx_Exported_Functions |
bogdanm | 92:4fc01daae5a5 | 420 | * @{ |
bogdanm | 92:4fc01daae5a5 | 421 | */ |
bogdanm | 92:4fc01daae5a5 | 422 | |
Kojto | 108:34e6b704fe68 | 423 | /** @addtogroup FLASHEx_Exported_Functions_Group1 |
bogdanm | 92:4fc01daae5a5 | 424 | * @{ |
bogdanm | 92:4fc01daae5a5 | 425 | */ |
bogdanm | 85:024bf7f99721 | 426 | /* IO operation functions *****************************************************/ |
bogdanm | 85:024bf7f99721 | 427 | HAL_StatusTypeDef HAL_FLASHEx_Erase(FLASH_EraseInitTypeDef *pEraseInit, uint32_t *PageError); |
bogdanm | 85:024bf7f99721 | 428 | HAL_StatusTypeDef HAL_FLASHEx_Erase_IT(FLASH_EraseInitTypeDef *pEraseInit); |
bogdanm | 85:024bf7f99721 | 429 | |
bogdanm | 92:4fc01daae5a5 | 430 | /** |
bogdanm | 92:4fc01daae5a5 | 431 | * @} |
bogdanm | 92:4fc01daae5a5 | 432 | */ |
bogdanm | 92:4fc01daae5a5 | 433 | |
Kojto | 108:34e6b704fe68 | 434 | /** @addtogroup FLASHEx_Exported_Functions_Group2 |
bogdanm | 92:4fc01daae5a5 | 435 | * @{ |
bogdanm | 92:4fc01daae5a5 | 436 | */ |
bogdanm | 85:024bf7f99721 | 437 | /* Peripheral Control functions ***********************************************/ |
bogdanm | 85:024bf7f99721 | 438 | HAL_StatusTypeDef HAL_FLASHEx_OBErase(void); |
bogdanm | 85:024bf7f99721 | 439 | HAL_StatusTypeDef HAL_FLASHEx_OBProgram(FLASH_OBProgramInitTypeDef *pOBInit); |
bogdanm | 85:024bf7f99721 | 440 | void HAL_FLASHEx_OBGetConfig(FLASH_OBProgramInitTypeDef *pOBInit); |
Kojto | 122:f9eeca106725 | 441 | uint32_t HAL_FLASHEx_OBGetUserData(uint32_t DATAAdress); |
bogdanm | 85:024bf7f99721 | 442 | |
bogdanm | 85:024bf7f99721 | 443 | /** |
bogdanm | 85:024bf7f99721 | 444 | * @} |
bogdanm | 85:024bf7f99721 | 445 | */ |
bogdanm | 85:024bf7f99721 | 446 | |
bogdanm | 85:024bf7f99721 | 447 | /** |
bogdanm | 85:024bf7f99721 | 448 | * @} |
bogdanm | 85:024bf7f99721 | 449 | */ |
bogdanm | 92:4fc01daae5a5 | 450 | |
bogdanm | 92:4fc01daae5a5 | 451 | /** |
bogdanm | 92:4fc01daae5a5 | 452 | * @} |
bogdanm | 92:4fc01daae5a5 | 453 | */ |
bogdanm | 92:4fc01daae5a5 | 454 | |
bogdanm | 92:4fc01daae5a5 | 455 | /** |
bogdanm | 92:4fc01daae5a5 | 456 | * @} |
bogdanm | 92:4fc01daae5a5 | 457 | */ |
Kojto | 122:f9eeca106725 | 458 | |
bogdanm | 85:024bf7f99721 | 459 | #ifdef __cplusplus |
bogdanm | 85:024bf7f99721 | 460 | } |
bogdanm | 85:024bf7f99721 | 461 | #endif |
bogdanm | 85:024bf7f99721 | 462 | |
bogdanm | 85:024bf7f99721 | 463 | #endif /* __STM32F0xx_HAL_FLASH_EX_H */ |
bogdanm | 85:024bf7f99721 | 464 | |
bogdanm | 85:024bf7f99721 | 465 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
bogdanm | 92:4fc01daae5a5 | 466 |