Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.

Dependents:   1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB

Fork of mbed by mbed official

Committer:
elijahorr
Date:
Thu Apr 14 07:28:54 2016 +0000
Revision:
121:672067c3ada4
Parent:
99:dbbf35b96557
.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 99:dbbf35b96557 1 /**
Kojto 99:dbbf35b96557 2 ******************************************************************************
Kojto 99:dbbf35b96557 3 * @file stm32l0xx_hal_flash_ex.h
Kojto 99:dbbf35b96557 4 * @author MCD Application Team
Kojto 99:dbbf35b96557 5 * @version V1.2.0
Kojto 99:dbbf35b96557 6 * @date 06-February-2015
Kojto 99:dbbf35b96557 7 * @brief Header file of FLash HAL Extension module.
Kojto 99:dbbf35b96557 8 ******************************************************************************
Kojto 99:dbbf35b96557 9 * @attention
Kojto 99:dbbf35b96557 10 *
Kojto 99:dbbf35b96557 11 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
Kojto 99:dbbf35b96557 12 *
Kojto 99:dbbf35b96557 13 * Redistribution and use in source and binary forms, with or without modification,
Kojto 99:dbbf35b96557 14 * are permitted provided that the following conditions are met:
Kojto 99:dbbf35b96557 15 * 1. Redistributions of source code must retain the above copyright notice,
Kojto 99:dbbf35b96557 16 * this list of conditions and the following disclaimer.
Kojto 99:dbbf35b96557 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
Kojto 99:dbbf35b96557 18 * this list of conditions and the following disclaimer in the documentation
Kojto 99:dbbf35b96557 19 * and/or other materials provided with the distribution.
Kojto 99:dbbf35b96557 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
Kojto 99:dbbf35b96557 21 * may be used to endorse or promote products derived from this software
Kojto 99:dbbf35b96557 22 * without specific prior written permission.
Kojto 99:dbbf35b96557 23 *
Kojto 99:dbbf35b96557 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Kojto 99:dbbf35b96557 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Kojto 99:dbbf35b96557 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Kojto 99:dbbf35b96557 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
Kojto 99:dbbf35b96557 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Kojto 99:dbbf35b96557 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
Kojto 99:dbbf35b96557 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
Kojto 99:dbbf35b96557 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
Kojto 99:dbbf35b96557 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Kojto 99:dbbf35b96557 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Kojto 99:dbbf35b96557 34 *
Kojto 99:dbbf35b96557 35 ******************************************************************************
Kojto 99:dbbf35b96557 36 */
Kojto 99:dbbf35b96557 37
Kojto 99:dbbf35b96557 38 /* Define to prevent recursive inclusion -------------------------------------*/
Kojto 99:dbbf35b96557 39 #ifndef __STM32L0xx_HAL_FLASH_EX_H
Kojto 99:dbbf35b96557 40 #define __STM32L0xx_HAL_FLASH_EX_H
Kojto 99:dbbf35b96557 41
Kojto 99:dbbf35b96557 42 #ifdef __cplusplus
Kojto 99:dbbf35b96557 43 extern "C" {
Kojto 99:dbbf35b96557 44 #endif
Kojto 99:dbbf35b96557 45
Kojto 99:dbbf35b96557 46 /* Includes ------------------------------------------------------------------*/
Kojto 99:dbbf35b96557 47 #include "stm32l0xx_hal_def.h"
Kojto 99:dbbf35b96557 48
Kojto 99:dbbf35b96557 49 /** @addtogroup STM32L0xx_HAL_Driver
Kojto 99:dbbf35b96557 50 * @{
Kojto 99:dbbf35b96557 51 */
Kojto 99:dbbf35b96557 52
Kojto 99:dbbf35b96557 53 /** @defgroup FLASHEx FLASHEx
Kojto 99:dbbf35b96557 54 * @{
Kojto 99:dbbf35b96557 55 */
Kojto 99:dbbf35b96557 56
Kojto 99:dbbf35b96557 57 /** @defgroup FLASHEx_Exported_Types FLASH Exported Types
Kojto 99:dbbf35b96557 58 * @{
Kojto 99:dbbf35b96557 59 */
Kojto 99:dbbf35b96557 60
Kojto 99:dbbf35b96557 61 /**
Kojto 99:dbbf35b96557 62 * @brief FLASH Option Bytes PROGRAM structure definition
Kojto 99:dbbf35b96557 63 */
Kojto 99:dbbf35b96557 64 typedef struct
Kojto 99:dbbf35b96557 65 {
Kojto 99:dbbf35b96557 66 uint32_t OptionType; /*!< OptionType: Option byte to be configured.
Kojto 99:dbbf35b96557 67 This parameter can be a value of @ref FLASHEx_Option_Type */
Kojto 99:dbbf35b96557 68
Kojto 99:dbbf35b96557 69 uint32_t WRPState; /*!< WRPState: Write protection activation or deactivation.
Kojto 99:dbbf35b96557 70 This parameter can be a value of @ref FLASHEx_WRP_State */
Kojto 99:dbbf35b96557 71
Kojto 99:dbbf35b96557 72 uint32_t WRPSector; /*!< WRPSector: This bitfield specifies the sector (s) which are write protected.
Kojto 99:dbbf35b96557 73 This parameter can be a combination of @ref FLASHEx_Option_Bytes_Write_Protection */
Kojto 99:dbbf35b96557 74
Kojto 99:dbbf35b96557 75 #if defined(STM32L071xx) || defined(STM32L072xx) || defined(STM32L073xx) || defined(STM32L081xx) || defined(STM32L082xx) || defined(STM32L083xx)
Kojto 99:dbbf35b96557 76 uint32_t WRPSector2; /*!< WRPSector2 : This bitfield specifies the sector(s) upper Sector31 which are write protected.
Kojto 99:dbbf35b96557 77 This parameter can be a combination of @ref FLASHEx_Option_Bytes_Write_Protection2 */
Kojto 99:dbbf35b96557 78 #endif
Kojto 99:dbbf35b96557 79
Kojto 99:dbbf35b96557 80 uint8_t RDPLevel; /*!< RDPLevel: Set the read protection level.
Kojto 99:dbbf35b96557 81 This parameter can be a value of @ref FLASHEx_Option_Bytes_Read_Protection */
Kojto 99:dbbf35b96557 82
Kojto 99:dbbf35b96557 83 uint8_t BORLevel; /*!< BORLevel: Set the BOR Level.
Kojto 99:dbbf35b96557 84 This parameter can be a value of @ref FLASHEx_Option_Bytes_BOR_Level */
Kojto 99:dbbf35b96557 85
Kojto 99:dbbf35b96557 86 uint8_t USERConfig; /*!< USERConfig: Program the FLASH User Option Byte: IWDG_SW / RST_STOP / RST_STDBY.
Kojto 99:dbbf35b96557 87 This parameter can be a combination of @ref FLASHEx_Option_Bytes_IWatchdog,
Kojto 99:dbbf35b96557 88 @ref FLASHEx_Option_Bytes_nRST_STOP and @ref FLASHEx_Option_Bytes_nRST_STDBY */
Kojto 99:dbbf35b96557 89
Kojto 99:dbbf35b96557 90 uint8_t BOOTBit1Config; /*!< BOOT1Config: Together with input pad Boot0, this bit selects the boot source, flash, ram or system memory
Kojto 99:dbbf35b96557 91 This parameter can be a value of @ref FLASHEx_Option_Bytes_BOOTBit1 */
Kojto 99:dbbf35b96557 92
Kojto 99:dbbf35b96557 93 } FLASH_OBProgramInitTypeDef;
Kojto 99:dbbf35b96557 94
Kojto 99:dbbf35b96557 95 /**
Kojto 99:dbbf35b96557 96 * @brief FLASH Advanced Option Bytes Program structure definition
Kojto 99:dbbf35b96557 97 */
Kojto 99:dbbf35b96557 98 typedef struct
Kojto 99:dbbf35b96557 99 {
Kojto 99:dbbf35b96557 100 uint32_t OptionType; /*!< OptionType: Option byte to be configured for extension .
Kojto 99:dbbf35b96557 101 This parameter can be a value of @ref FLASHEx_OptionAdv_Type */
Kojto 99:dbbf35b96557 102
Kojto 99:dbbf35b96557 103 uint8_t PCROPState; /*!< PCROPState: PCROP activation or deactivation.
Kojto 99:dbbf35b96557 104 This parameter can be a value of @ref FLASHEx_PCROP_State */
Kojto 99:dbbf35b96557 105
Kojto 99:dbbf35b96557 106 uint32_t PCROPSector; /*!< PCROPSector : This bitfield specifies the sector(s) which are read/write protected.
Kojto 99:dbbf35b96557 107 This parameter can be a combination of @ref FLASHEx_Option_Bytes_PC_ReadWrite_Protection */
Kojto 99:dbbf35b96557 108
Kojto 99:dbbf35b96557 109 #if defined (STM32L071xx) || defined (STM32L072xx) || defined (STM32L073xx) || defined (STM32L081xx) || defined (STM32L082xx) || defined (STM32L083xx)
Kojto 99:dbbf35b96557 110 uint32_t PCROPSector2; /*!< PCROPSector : This bitfield specifies the sector(s) upper Sector31 which are read/write protected.
Kojto 99:dbbf35b96557 111 This parameter can be a combination of @ref FLASHEx_Option_Bytes_PC_ReadWrite_Protection2 */
Kojto 99:dbbf35b96557 112
Kojto 99:dbbf35b96557 113 uint8_t BootConfig; /*!< BootConfig: specifies Option bytes for boot config.
Kojto 99:dbbf35b96557 114 This parameter can be a value of @ref FLASHEx_Option_Bytes_BOOT_BANK */
Kojto 99:dbbf35b96557 115 #endif /* if STM32L071xx || STM32L072xx || STM32L073xx || STM32L081xx || STM32L082xx || STM32L083xx */
Kojto 99:dbbf35b96557 116 } FLASH_AdvOBProgramInitTypeDef;
Kojto 99:dbbf35b96557 117
Kojto 99:dbbf35b96557 118 /**
Kojto 99:dbbf35b96557 119 * @}
Kojto 99:dbbf35b96557 120 */
Kojto 99:dbbf35b96557 121
Kojto 99:dbbf35b96557 122 /** @defgroup FLASHEx_Exported_Constants FLASHEx Exported Constants
Kojto 99:dbbf35b96557 123 * @{
Kojto 99:dbbf35b96557 124 */
Kojto 99:dbbf35b96557 125
Kojto 99:dbbf35b96557 126 /** @defgroup FLASHEx_Type_Erase FLASHEx_Type_Erase
Kojto 99:dbbf35b96557 127 * @{
Kojto 99:dbbf35b96557 128 */
Kojto 99:dbbf35b96557 129 #define FLASH_TYPEERASE_PAGES ((uint32_t)0x00) /*!< Page erase only */
Kojto 99:dbbf35b96557 130 /**
Kojto 99:dbbf35b96557 131 * @}
Kojto 99:dbbf35b96557 132 */
Kojto 99:dbbf35b96557 133
Kojto 99:dbbf35b96557 134 /** @defgroup FLASHEx_Option_Type FLASHEx Option Type
Kojto 99:dbbf35b96557 135 * @{
Kojto 99:dbbf35b96557 136 */
Kojto 99:dbbf35b96557 137 #define OPTIONBYTE_WRP ((uint32_t)0x01) /*!< WRP option byte configuration */
Kojto 99:dbbf35b96557 138 #define OPTIONBYTE_RDP ((uint32_t)0x02) /*!< RDP option byte configuration */
Kojto 99:dbbf35b96557 139 #define OPTIONBYTE_USER ((uint32_t)0x04) /*!< USER option byte configuration */
Kojto 99:dbbf35b96557 140 #define OPTIONBYTE_BOR ((uint32_t)0x08) /*!< BOR option byte configuration */
Kojto 99:dbbf35b96557 141 #define OPTIONBYTE_BOOT_BIT1 ((uint32_t)0x10) /*!< BOOT PIN1 option byte configuration*/
Kojto 99:dbbf35b96557 142 /**
Kojto 99:dbbf35b96557 143 * @}
Kojto 99:dbbf35b96557 144 */
Kojto 99:dbbf35b96557 145
Kojto 99:dbbf35b96557 146 /** @defgroup FLASHEx_WRP_State FLASHEx WRP State
Kojto 99:dbbf35b96557 147 * @{
Kojto 99:dbbf35b96557 148 */
Kojto 99:dbbf35b96557 149 #define OB_WRPSTATE_DISABLE ((uint32_t)0x00) /*!< Disable the write protection of the desired sectors */
Kojto 99:dbbf35b96557 150 #define OB_WRPSTATE_ENABLE ((uint32_t)0x01) /*!< Enable the write protection of the desired sectors */
Kojto 99:dbbf35b96557 151 /**
Kojto 99:dbbf35b96557 152 * @}
Kojto 99:dbbf35b96557 153 */
Kojto 99:dbbf35b96557 154
Kojto 99:dbbf35b96557 155 /** @defgroup FLASHEx_Option_Bytes_ReadWrite_Mask FLASHEx Option Bytes Write Mask
Kojto 99:dbbf35b96557 156 * @{
Kojto 99:dbbf35b96557 157 */
Kojto 99:dbbf35b96557 158 #define WRP_MASK_LOW ((uint32_t)0x0000FFFF)
Kojto 99:dbbf35b96557 159 #define WRP_MASK_HIGH ((uint32_t)0xFFFF0000)
Kojto 99:dbbf35b96557 160 /**
Kojto 99:dbbf35b96557 161 * @}
Kojto 99:dbbf35b96557 162 */
Kojto 99:dbbf35b96557 163
Kojto 99:dbbf35b96557 164 #if defined (STM32L031xx) || defined (STM32L041xx)
Kojto 99:dbbf35b96557 165 /** @defgroup FLASHEx_Option_Bytes_Write_Protection FLASHEx Option Bytes Write Protection
Kojto 99:dbbf35b96557 166 * @{
Kojto 99:dbbf35b96557 167 */
Kojto 99:dbbf35b96557 168 #define OB_WRP_Pages0to31 ((uint32_t)0x00000001) /* Write protection of Sector0 */
Kojto 99:dbbf35b96557 169 #define OB_WRP_Pages32to63 ((uint32_t)0x00000002) /* Write protection of Sector1 */
Kojto 99:dbbf35b96557 170 #define OB_WRP_Pages64to95 ((uint32_t)0x00000004) /* Write protection of Sector2 */
Kojto 99:dbbf35b96557 171 #define OB_WRP_Pages96to127 ((uint32_t)0x00000008) /* Write protection of Sector3 */
Kojto 99:dbbf35b96557 172 #define OB_WRP_Pages128to159 ((uint32_t)0x00000010) /* Write protection of Sector4 */
Kojto 99:dbbf35b96557 173 #define OB_WRP_Pages160to191 ((uint32_t)0x00000020) /* Write protection of Sector5 */
Kojto 99:dbbf35b96557 174 #define OB_WRP_Pages192to223 ((uint32_t)0x00000040) /* Write protection of Sector6 */
Kojto 99:dbbf35b96557 175 #define OB_WRP_Pages224to255 ((uint32_t)0x00000080) /* Write protection of Sector7 */
Kojto 99:dbbf35b96557 176 #define OB_WRP_AllPages ((uint32_t)0x000000FF) /*!< Write protection of all Sectors */
Kojto 99:dbbf35b96557 177 /**
Kojto 99:dbbf35b96557 178 * @}
Kojto 99:dbbf35b96557 179 */
Kojto 99:dbbf35b96557 180 #elif defined (STM32L051xx) || defined (STM32L052xx) || defined (STM32L053xx) || defined (STM32L061xx) || defined (STM32L062xx) || defined (STM32L063xx)
Kojto 99:dbbf35b96557 181 /** @defgroup FLASHEx_Option_Bytes_Write_Protection FLASHEx Option Bytes Write Protection
Kojto 99:dbbf35b96557 182 * @{
Kojto 99:dbbf35b96557 183 */
Kojto 99:dbbf35b96557 184 #define OB_WRP_Pages0to31 ((uint32_t)0x00000001) /* Write protection of Sector0 */
Kojto 99:dbbf35b96557 185 #define OB_WRP_Pages32to63 ((uint32_t)0x00000002) /* Write protection of Sector1 */
Kojto 99:dbbf35b96557 186 #define OB_WRP_Pages64to95 ((uint32_t)0x00000004) /* Write protection of Sector2 */
Kojto 99:dbbf35b96557 187 #define OB_WRP_Pages96to127 ((uint32_t)0x00000008) /* Write protection of Sector3 */
Kojto 99:dbbf35b96557 188 #define OB_WRP_Pages128to159 ((uint32_t)0x00000010) /* Write protection of Sector4 */
Kojto 99:dbbf35b96557 189 #define OB_WRP_Pages160to191 ((uint32_t)0x00000020) /* Write protection of Sector5 */
Kojto 99:dbbf35b96557 190 #define OB_WRP_Pages192to223 ((uint32_t)0x00000040) /* Write protection of Sector6 */
Kojto 99:dbbf35b96557 191 #define OB_WRP_Pages224to255 ((uint32_t)0x00000080) /* Write protection of Sector7 */
Kojto 99:dbbf35b96557 192 #define OB_WRP_Pages256to287 ((uint32_t)0x00000100) /* Write protection of Sector8 */
Kojto 99:dbbf35b96557 193 #define OB_WRP_Pages288to319 ((uint32_t)0x00000200) /* Write protection of Sector9 */
Kojto 99:dbbf35b96557 194 #define OB_WRP_Pages320to351 ((uint32_t)0x00000400) /* Write protection of Sector10 */
Kojto 99:dbbf35b96557 195 #define OB_WRP_Pages352to383 ((uint32_t)0x00000800) /* Write protection of Sector11 */
Kojto 99:dbbf35b96557 196 #define OB_WRP_Pages384to415 ((uint32_t)0x00001000) /* Write protection of Sector12 */
Kojto 99:dbbf35b96557 197 #define OB_WRP_Pages416to447 ((uint32_t)0x00002000) /* Write protection of Sector13 */
Kojto 99:dbbf35b96557 198 #define OB_WRP_Pages448to479 ((uint32_t)0x00004000) /* Write protection of Sector14 */
Kojto 99:dbbf35b96557 199 #define OB_WRP_Pages480to511 ((uint32_t)0x00008000) /* Write protection of Sector15 */
Kojto 99:dbbf35b96557 200 #define OB_WRP_AllPages ((uint32_t)0x0000FFFF) /*!< Write protection of all Sectors */
Kojto 99:dbbf35b96557 201 /**
Kojto 99:dbbf35b96557 202 * @}
Kojto 99:dbbf35b96557 203 */
Kojto 99:dbbf35b96557 204
Kojto 99:dbbf35b96557 205 #elif defined (STM32L071xx) || defined (STM32L072xx) || defined (STM32L073xx) || defined (STM32L081xx) || defined (STM32L082xx) || defined (STM32L083xx)
Kojto 99:dbbf35b96557 206 /** @defgroup FLASHEx_Option_Bytes_Write_Protection FLASHEx Option Bytes Write ProtectionP
Kojto 99:dbbf35b96557 207 * @{
Kojto 99:dbbf35b96557 208 */
Kojto 99:dbbf35b96557 209 #define OB_WRP_Pages0to31 ((uint32_t)0x00000001) /* Write protection of Sector0 */
Kojto 99:dbbf35b96557 210 #define OB_WRP_Pages32to63 ((uint32_t)0x00000002) /* Write protection of Sector1 */
Kojto 99:dbbf35b96557 211 #define OB_WRP_Pages64to95 ((uint32_t)0x00000004) /* Write protection of Sector2 */
Kojto 99:dbbf35b96557 212 #define OB_WRP_Pages96to127 ((uint32_t)0x00000008) /* Write protection of Sector3 */
Kojto 99:dbbf35b96557 213 #define OB_WRP_Pages128to159 ((uint32_t)0x00000010) /* Write protection of Sector4 */
Kojto 99:dbbf35b96557 214 #define OB_WRP_Pages160to191 ((uint32_t)0x00000020) /* Write protection of Sector5 */
Kojto 99:dbbf35b96557 215 #define OB_WRP_Pages192to223 ((uint32_t)0x00000040) /* Write protection of Sector6 */
Kojto 99:dbbf35b96557 216 #define OB_WRP_Pages224to255 ((uint32_t)0x00000080) /* Write protection of Sector7 */
Kojto 99:dbbf35b96557 217 #define OB_WRP_Pages256to287 ((uint32_t)0x00000100) /* Write protection of Sector8 */
Kojto 99:dbbf35b96557 218 #define OB_WRP_Pages288to319 ((uint32_t)0x00000200) /* Write protection of Sector9 */
Kojto 99:dbbf35b96557 219 #define OB_WRP_Pages320to351 ((uint32_t)0x00000400) /* Write protection of Sector10 */
Kojto 99:dbbf35b96557 220 #define OB_WRP_Pages352to383 ((uint32_t)0x00000800) /* Write protection of Sector11 */
Kojto 99:dbbf35b96557 221 #define OB_WRP_Pages384to415 ((uint32_t)0x00001000) /* Write protection of Sector12 */
Kojto 99:dbbf35b96557 222 #define OB_WRP_Pages416to447 ((uint32_t)0x00002000) /* Write protection of Sector13 */
Kojto 99:dbbf35b96557 223 #define OB_WRP_Pages448to479 ((uint32_t)0x00004000) /* Write protection of Sector14 */
Kojto 99:dbbf35b96557 224 #define OB_WRP_Pages480to511 ((uint32_t)0x00008000) /* Write protection of Sector15 */
Kojto 99:dbbf35b96557 225 #define OB_WRP_Pages512to543 ((uint32_t)0x00010000) /* Write protection of Sector16 */
Kojto 99:dbbf35b96557 226 #define OB_WRP_Pages544to575 ((uint32_t)0x00020000) /* Write protection of Sector17 */
Kojto 99:dbbf35b96557 227 #define OB_WRP_Pages576to607 ((uint32_t)0x00040000) /* Write protection of Sector18 */
Kojto 99:dbbf35b96557 228 #define OB_WRP_Pages608to639 ((uint32_t)0x00080000) /* Write protection of Sector19 */
Kojto 99:dbbf35b96557 229 #define OB_WRP_Pages640to671 ((uint32_t)0x00100000) /* Write protection of Sector20 */
Kojto 99:dbbf35b96557 230 #define OB_WRP_Pages672to703 ((uint32_t)0x00200000) /* Write protection of Sector21 */
Kojto 99:dbbf35b96557 231 #define OB_WRP_Pages704to735 ((uint32_t)0x00400000) /* Write protection of Sector22 */
Kojto 99:dbbf35b96557 232 #define OB_WRP_Pages736to767 ((uint32_t)0x00800000) /* Write protection of Sector23 */
Kojto 99:dbbf35b96557 233 #define OB_WRP_Pages768to799 ((uint32_t)0x01000000) /* Write protection of Sector24 */
Kojto 99:dbbf35b96557 234 #define OB_WRP_Pages800to831 ((uint32_t)0x02000000) /* Write protection of Sector25 */
Kojto 99:dbbf35b96557 235 #define OB_WRP_Pages832to863 ((uint32_t)0x04000000) /* Write protection of Sector26 */
Kojto 99:dbbf35b96557 236 #define OB_WRP_Pages864to895 ((uint32_t)0x08000000) /* Write protection of Sector27 */
Kojto 99:dbbf35b96557 237 #define OB_WRP_Pages896to927 ((uint32_t)0x10000000) /* Write protection of Sector28 */
Kojto 99:dbbf35b96557 238 #define OB_WRP_Pages928to959 ((uint32_t)0x20000000) /* Write protection of Sector29 */
Kojto 99:dbbf35b96557 239 #define OB_WRP_Pages960to991 ((uint32_t)0x40000000) /* Write protection of Sector30 */
Kojto 99:dbbf35b96557 240 #define OB_WRP_Pages992to1023 ((uint32_t)0x80000000) /* Write protection of Sector31 */
Kojto 99:dbbf35b96557 241 #define OB_WRP_AllPages ((uint32_t)0xFFFFFFFF) /*!<Write protection of all Sectors */
Kojto 99:dbbf35b96557 242 /**
Kojto 99:dbbf35b96557 243 * @}
Kojto 99:dbbf35b96557 244 */
Kojto 99:dbbf35b96557 245
Kojto 99:dbbf35b96557 246 /** @defgroup FLASHEx_Option_Bytes_Write_Protection2 FLASHEx Option Bytes Write Protection
Kojto 99:dbbf35b96557 247 * @{
Kojto 99:dbbf35b96557 248 */
Kojto 99:dbbf35b96557 249 #define OB_WRP2_Pages1024to1055 ((uint32_t)0x00000001) /* Write protection of Sector32 */
Kojto 99:dbbf35b96557 250 #define OB_WRP2_Pages1056to1087 ((uint32_t)0x00000002) /* Write protection of Sector33 */
Kojto 99:dbbf35b96557 251 #define OB_WRP2_Pages1088to1119 ((uint32_t)0x00000004) /* Write protection of Sector34 */
Kojto 99:dbbf35b96557 252 #define OB_WRP2_Pages1120to1151 ((uint32_t)0x00000008) /* Write protection of Sector35 */
Kojto 99:dbbf35b96557 253 #define OB_WRP2_Pages1152to1183 ((uint32_t)0x00000010) /* Write protection of Sector36 */
Kojto 99:dbbf35b96557 254 #define OB_WRP2_Pages1184to1215 ((uint32_t)0x00000020) /* Write protection of Sector37 */
Kojto 99:dbbf35b96557 255 #define OB_WRP2_Pages1216to1247 ((uint32_t)0x00000040) /* Write protection of Sector38 */
Kojto 99:dbbf35b96557 256 #define OB_WRP2_Pages1248to1279 ((uint32_t)0x00000080) /* Write protection of Sector39 */
Kojto 99:dbbf35b96557 257 #define OB_WRP2_Pages1280to1311 ((uint32_t)0x00000100) /* Write protection of Sector40 */
Kojto 99:dbbf35b96557 258 #define OB_WRP2_Pages1312to1343 ((uint32_t)0x00000200) /* Write protection of Sector41 */
Kojto 99:dbbf35b96557 259 #define OB_WRP2_Pages1344to1375 ((uint32_t)0x00000400) /* Write protection of Sector42 */
Kojto 99:dbbf35b96557 260 #define OB_WRP2_Pages1376to1407 ((uint32_t)0x00000800) /* Write protection of Sector43 */
Kojto 99:dbbf35b96557 261 #define OB_WRP2_Pages1408to1439 ((uint32_t)0x00001000) /* Write protection of Sector44 */
Kojto 99:dbbf35b96557 262 #define OB_WRP2_Pages1440to1471 ((uint32_t)0x00002000) /* Write protection of Sector45 */
Kojto 99:dbbf35b96557 263 #define OB_WRP2_Pages1472to1503 ((uint32_t)0x00004000) /* Write protection of Sector46 */
Kojto 99:dbbf35b96557 264 #define OB_WRP2_Pages1504to1535 ((uint32_t)0x00008000) /* Write protection of Sector47 */
Kojto 99:dbbf35b96557 265 #define OB_WRP2_AllPages ((uint32_t)0x0000FFFF) /*!< Write protection of all Sectors WRP2 */
Kojto 99:dbbf35b96557 266 /**
Kojto 99:dbbf35b96557 267 * @}
Kojto 99:dbbf35b96557 268 */
Kojto 99:dbbf35b96557 269 #endif /* STM32L071xx || STM32L072xx || (STM32L073xx) || (STM32L081xx) || (STM32L082xx) || (STM32L083xx) */
Kojto 99:dbbf35b96557 270
Kojto 99:dbbf35b96557 271 /** @defgroup FLASHEx_Option_Bytes_Read_Protection FLASHEx Option Bytes Read Protection
Kojto 99:dbbf35b96557 272 * @{
Kojto 99:dbbf35b96557 273 */
Kojto 99:dbbf35b96557 274 #define OB_RDP_LEVEL0 ((uint8_t)0xAA)
Kojto 99:dbbf35b96557 275 #define OB_RDP_LEVEL1 ((uint8_t)0xBB)
Kojto 99:dbbf35b96557 276 #define OB_RDP_LEVEL2 ((uint8_t)0xCC) /* Warning: When enabling read protection level 2
Kojto 99:dbbf35b96557 277 it is no more possible to go back to level 1 or 0 */
Kojto 99:dbbf35b96557 278 /**
Kojto 99:dbbf35b96557 279 * @}
Kojto 99:dbbf35b96557 280 */
Kojto 99:dbbf35b96557 281
Kojto 99:dbbf35b96557 282 /** @defgroup FLASHEx_Option_Bytes_BOR_Level FLASHEx Option Bytes BOR Level
Kojto 99:dbbf35b96557 283 * @{
Kojto 99:dbbf35b96557 284 */
Kojto 99:dbbf35b96557 285 #define OB_BOR_OFF ((uint8_t)0x00) /*!< BOR is disabled at power down, the reset is asserted when the VDD
Kojto 99:dbbf35b96557 286 power supply reaches the PDR(Power Down Reset) threshold (1.5V) */
Kojto 99:dbbf35b96557 287 #define OB_BOR_LEVEL1 ((uint8_t)0x08) /*!< BOR Reset threshold levels for 1.7V - 1.8V VDD power supply */
Kojto 99:dbbf35b96557 288 #define OB_BOR_LEVEL2 ((uint8_t)0x09) /*!< BOR Reset threshold levels for 1.9V - 2.0V VDD power supply */
Kojto 99:dbbf35b96557 289 #define OB_BOR_LEVEL3 ((uint8_t)0x0A) /*!< BOR Reset threshold levels for 2.3V - 2.4V VDD power supply */
Kojto 99:dbbf35b96557 290 #define OB_BOR_LEVEL4 ((uint8_t)0x0B) /*!< BOR Reset threshold levels for 2.55V - 2.65V VDD power supply */
Kojto 99:dbbf35b96557 291 #define OB_BOR_LEVEL5 ((uint8_t)0x0C) /*!< BOR Reset threshold levels for 2.8V - 2.9V VDD power supply */
Kojto 99:dbbf35b96557 292 /**
Kojto 99:dbbf35b96557 293 * @}
Kojto 99:dbbf35b96557 294 */
Kojto 99:dbbf35b96557 295
Kojto 99:dbbf35b96557 296 /** @defgroup FLASHEx_Option_Bytes_IWatchdog FLASHEx Option Bytes IWatchdog
Kojto 99:dbbf35b96557 297 * @{
Kojto 99:dbbf35b96557 298 */
Kojto 99:dbbf35b96557 299 #define OB_IWDG_SW ((uint8_t)0x10) /*!< Software WDG selected */
Kojto 99:dbbf35b96557 300 #define OB_IWDG_HW ((uint8_t)0x00) /*!< Hardware WDG selected */
Kojto 99:dbbf35b96557 301 /**
Kojto 99:dbbf35b96557 302 * @}
Kojto 99:dbbf35b96557 303 */
Kojto 99:dbbf35b96557 304
Kojto 99:dbbf35b96557 305 /** @defgroup FLASHEx_Option_Bytes_nRST_STOP FLASHEx Option Bytes nRST_STOP
Kojto 99:dbbf35b96557 306 * @{
Kojto 99:dbbf35b96557 307 */
Kojto 99:dbbf35b96557 308 #define OB_STOP_NORST ((uint8_t)0x20) /*!< No reset generated when entering in STOP */
Kojto 99:dbbf35b96557 309 #define OB_STOP_RST ((uint8_t)0x00) /*!< Reset generated when entering in STOP */
Kojto 99:dbbf35b96557 310 /**
Kojto 99:dbbf35b96557 311 * @}
Kojto 99:dbbf35b96557 312 */
Kojto 99:dbbf35b96557 313
Kojto 99:dbbf35b96557 314 /** @defgroup FLASHEx_Option_Bytes_nRST_STDBY FLASHEx Option Bytes nRST_STDBY
Kojto 99:dbbf35b96557 315 * @{
Kojto 99:dbbf35b96557 316 */
Kojto 99:dbbf35b96557 317 #define OB_STDBY_NORST ((uint8_t)0x40) /*!< No reset generated when entering in STANDBY */
Kojto 99:dbbf35b96557 318 #define OB_STDBY_RST ((uint8_t)0x00) /*!< Reset generated when entering in STANDBY */
Kojto 99:dbbf35b96557 319 /**
Kojto 99:dbbf35b96557 320 * @}
Kojto 99:dbbf35b96557 321 */
Kojto 99:dbbf35b96557 322
Kojto 99:dbbf35b96557 323
Kojto 99:dbbf35b96557 324 /** @defgroup FLASHEx_PCROP_State
Kojto 99:dbbf35b96557 325 * @{
Kojto 99:dbbf35b96557 326 */
Kojto 99:dbbf35b96557 327 #define OB_PCROP_STATE_DISABLE ((uint8_t)0x00) /*!< Disable PCROP */
Kojto 99:dbbf35b96557 328 #define OB_PCROP_STATE_ENABLE ((uint8_t)0x01) /*!< Enable PCROP */
Kojto 99:dbbf35b96557 329 /**
Kojto 99:dbbf35b96557 330 * @}
Kojto 99:dbbf35b96557 331 */
Kojto 99:dbbf35b96557 332
Kojto 99:dbbf35b96557 333
Kojto 99:dbbf35b96557 334 /** @defgroup FLASHEx_OptionAdv_Type
Kojto 99:dbbf35b96557 335 * @{
Kojto 99:dbbf35b96557 336 */
Kojto 99:dbbf35b96557 337 #if defined (STM32L071xx) || defined (STM32L072xx) || defined (STM32L073xx) || defined (STM32L081xx) || defined (STM32L082xx) || defined (STM32L083xx)
Kojto 99:dbbf35b96557 338 #define OPTIONBYTE_PCROP ((uint32_t)0x01) /*!< PCROP option byte configuration*/
Kojto 99:dbbf35b96557 339 #define OPTIONBYTE_BOOTCONFIG ((uint32_t)0x02) /*!< BOOTConfig option byte configuration, boot from bank 2*/
Kojto 99:dbbf35b96557 340 #else /* if STM32L071xx || STM32L072xx || STM32L073xx || STM32L081xx || STM32L082xx || STM32L083xx */
Kojto 99:dbbf35b96557 341 #define OPTIONBYTE_PCROP ((uint32_t)0x01) /*!< PCROP option byte configuration*/
Kojto 99:dbbf35b96557 342 #endif /* if STM32L071xx || STM32L072xx || STM32L073xx || STM32L081xx || STM32L082xx || STM32L083xx */
Kojto 99:dbbf35b96557 343 /**
Kojto 99:dbbf35b96557 344 * @}
Kojto 99:dbbf35b96557 345 */
Kojto 99:dbbf35b96557 346
Kojto 99:dbbf35b96557 347 #if defined (STM32L031xx) || defined (STM32L041xx)
Kojto 99:dbbf35b96557 348 /** @defgroup FLASHEx_Option_Bytes_PC_ReadWrite_Protection FLASHEx Option Bytes PC Read/Write Protection
Kojto 99:dbbf35b96557 349 * @{
Kojto 99:dbbf35b96557 350 */
Kojto 99:dbbf35b96557 351 #define OB_PCROP_Pages0to31 ((uint32_t)0x00000001) /* PC Read/Write protection of Sector0 */
Kojto 99:dbbf35b96557 352 #define OB_PCROP_Pages32to63 ((uint32_t)0x00000002) /* PC Read/Write protection of Sector1 */
Kojto 99:dbbf35b96557 353 #define OB_PCROP_Pages64to95 ((uint32_t)0x00000004) /* PC Read/Write protection of Sector2 */
Kojto 99:dbbf35b96557 354 #define OB_PCROP_Pages96to127 ((uint32_t)0x00000008) /* PC Read/Write protection of Sector3 */
Kojto 99:dbbf35b96557 355 #define OB_PCROP_Pages128to159 ((uint32_t)0x00000010) /* PC Read/Write protection of Sector4 */
Kojto 99:dbbf35b96557 356 #define OB_PCROP_Pages160to191 ((uint32_t)0x00000020) /* PC Read/Write protection of Sector5 */
Kojto 99:dbbf35b96557 357 #define OB_PCROP_Pages192to223 ((uint32_t)0x00000040) /* PC Read/Write protection of Sector6 */
Kojto 99:dbbf35b96557 358 #define OB_PCROP_Pages224to255 ((uint32_t)0x00000080) /* PC Read/Write protection of Sector7 */
Kojto 99:dbbf35b96557 359 #define OB_PCROP_AllPages ((uint32_t)0x000000FF) /*!< PC Read/Write protection of all Sectors */
Kojto 99:dbbf35b96557 360 /**
Kojto 99:dbbf35b96557 361 * @}
Kojto 99:dbbf35b96557 362 */
Kojto 99:dbbf35b96557 363 #elif defined (STM32L051xx) || defined (STM32L052xx) || defined (STM32L053xx) || defined (STM32L061xx) || defined (STM32L062xx) || defined (STM32L063xx)
Kojto 99:dbbf35b96557 364 /** @defgroup FLASHEx_Option_Bytes_PC_ReadWrite_Protection FLASHEx Option Bytes PC Read/Write Protection
Kojto 99:dbbf35b96557 365 * @{
Kojto 99:dbbf35b96557 366 */
Kojto 99:dbbf35b96557 367 #define OB_PCROP_Pages0to31 ((uint32_t)0x00000001) /* PC Read/Write protection of Sector0 */
Kojto 99:dbbf35b96557 368 #define OB_PCROP_Pages32to63 ((uint32_t)0x00000002) /* PC Read/Write protection of Sector1 */
Kojto 99:dbbf35b96557 369 #define OB_PCROP_Pages64to95 ((uint32_t)0x00000004) /* PC Read/Write protection of Sector2 */
Kojto 99:dbbf35b96557 370 #define OB_PCROP_Pages96to127 ((uint32_t)0x00000008) /* PC Read/Write protection of Sector3 */
Kojto 99:dbbf35b96557 371 #define OB_PCROP_Pages128to159 ((uint32_t)0x00000010) /* PC Read/Write protection of Sector4 */
Kojto 99:dbbf35b96557 372 #define OB_PCROP_Pages160to191 ((uint32_t)0x00000020) /* PC Read/Write protection of Sector5 */
Kojto 99:dbbf35b96557 373 #define OB_PCROP_Pages192to223 ((uint32_t)0x00000040) /* PC Read/Write protection of Sector6 */
Kojto 99:dbbf35b96557 374 #define OB_PCROP_Pages224to255 ((uint32_t)0x00000080) /* PC Read/Write protection of Sector7 */
Kojto 99:dbbf35b96557 375 #define OB_PCROP_Pages256to287 ((uint32_t)0x00000100) /* PC Read/Write protection of Sector8 */
Kojto 99:dbbf35b96557 376 #define OB_PCROP_Pages288to319 ((uint32_t)0x00000200) /* PC Read/Write protection of Sector9 */
Kojto 99:dbbf35b96557 377 #define OB_PCROP_Pages320to351 ((uint32_t)0x00000400) /* PC Read/Write protection of Sector10 */
Kojto 99:dbbf35b96557 378 #define OB_PCROP_Pages352to383 ((uint32_t)0x00000800) /* PC Read/Write protection of Sector11 */
Kojto 99:dbbf35b96557 379 #define OB_PCROP_Pages384to415 ((uint32_t)0x00001000) /* PC Read/Write protection of Sector12 */
Kojto 99:dbbf35b96557 380 #define OB_PCROP_Pages416to447 ((uint32_t)0x00002000) /* PC Read/Write protection of Sector13 */
Kojto 99:dbbf35b96557 381 #define OB_PCROP_Pages448to479 ((uint32_t)0x00004000) /* PC Read/Write protection of Sector14 */
Kojto 99:dbbf35b96557 382 #define OB_PCROP_Pages480to511 ((uint32_t)0x00008000) /* PC Read/Write protection of Sector15 */
Kojto 99:dbbf35b96557 383 #define OB_PCROP_AllPages ((uint32_t)0x0000FFFF) /*!< PC Read/Write protection of all Sectors */
Kojto 99:dbbf35b96557 384 /**
Kojto 99:dbbf35b96557 385 * @}
Kojto 99:dbbf35b96557 386 */
Kojto 99:dbbf35b96557 387 #endif
Kojto 99:dbbf35b96557 388
Kojto 99:dbbf35b96557 389 #if defined (STM32L071xx) || defined (STM32L072xx) || defined (STM32L073xx) || defined (STM32L081xx) || defined (STM32L082xx) || defined (STM32L083xx)
Kojto 99:dbbf35b96557 390 /** @defgroup FLASHEx_Option_Bytes_PC_ReadWrite_Protection FLASHEx Option Bytes PC Read/Write Protection
Kojto 99:dbbf35b96557 391 * @{
Kojto 99:dbbf35b96557 392 */
Kojto 99:dbbf35b96557 393 #define OB_PCROP_Pages0to31 ((uint32_t)0x00000001) /* PC Read/Write protection of Sector0 */
Kojto 99:dbbf35b96557 394 #define OB_PCROP_Pages32to63 ((uint32_t)0x00000002) /* PC Read/Write protection of Sector1 */
Kojto 99:dbbf35b96557 395 #define OB_PCROP_Pages64to95 ((uint32_t)0x00000004) /* PC Read/Write protection of Sector2 */
Kojto 99:dbbf35b96557 396 #define OB_PCROP_Pages96to127 ((uint32_t)0x00000008) /* PC Read/Write protection of Sector3 */
Kojto 99:dbbf35b96557 397 #define OB_PCROP_Pages128to159 ((uint32_t)0x00000010) /* PC Read/Write protection of Sector4 */
Kojto 99:dbbf35b96557 398 #define OB_PCROP_Pages160to191 ((uint32_t)0x00000020) /* PC Read/Write protection of Sector5 */
Kojto 99:dbbf35b96557 399 #define OB_PCROP_Pages192to223 ((uint32_t)0x00000040) /* PC Read/Write protection of Sector6 */
Kojto 99:dbbf35b96557 400 #define OB_PCROP_Pages224to255 ((uint32_t)0x00000080) /* PC Read/Write protection of Sector7 */
Kojto 99:dbbf35b96557 401 #define OB_PCROP_Pages256to287 ((uint32_t)0x00000100) /* PC Read/Write protection of Sector8 */
Kojto 99:dbbf35b96557 402 #define OB_PCROP_Pages288to319 ((uint32_t)0x00000200) /* PC Read/Write protection of Sector9 */
Kojto 99:dbbf35b96557 403 #define OB_PCROP_Pages320to351 ((uint32_t)0x00000400) /* PC Read/Write protection of Sector10 */
Kojto 99:dbbf35b96557 404 #define OB_PCROP_Pages352to383 ((uint32_t)0x00000800) /* PC Read/Write protection of Sector11 */
Kojto 99:dbbf35b96557 405 #define OB_PCROP_Pages384to415 ((uint32_t)0x00001000) /* PC Read/Write protection of Sector12 */
Kojto 99:dbbf35b96557 406 #define OB_PCROP_Pages416to447 ((uint32_t)0x00002000) /* PC Read/Write protection of Sector13 */
Kojto 99:dbbf35b96557 407 #define OB_PCROP_Pages448to479 ((uint32_t)0x00004000) /* PC Read/Write protection of Sector14 */
Kojto 99:dbbf35b96557 408 #define OB_PCROP_Pages480to511 ((uint32_t)0x00008000) /* PC Read/Write protection of Sector15 */
Kojto 99:dbbf35b96557 409 #define OB_PCROP_Pages512to543 ((uint32_t)0x00010000) /* PC Read/Write protection of Sector16 */
Kojto 99:dbbf35b96557 410 #define OB_PCROP_Pages544to575 ((uint32_t)0x00020000) /* PC Read/Write protection of Sector17 */
Kojto 99:dbbf35b96557 411 #define OB_PCROP_Pages576to607 ((uint32_t)0x00040000) /* PC Read/Write protection of Sector18 */
Kojto 99:dbbf35b96557 412 #define OB_PCROP_Pages608to639 ((uint32_t)0x00080000) /* PC Read/Write protection of Sector19 */
Kojto 99:dbbf35b96557 413 #define OB_PCROP_Pages640to671 ((uint32_t)0x00100000) /* PC Read/Write protection of Sector20 */
Kojto 99:dbbf35b96557 414 #define OB_PCROP_Pages672to703 ((uint32_t)0x00200000) /* PC Read/Write protection of Sector21 */
Kojto 99:dbbf35b96557 415 #define OB_PCROP_Pages704to735 ((uint32_t)0x00400000) /* PC Read/Write protection of Sector22 */
Kojto 99:dbbf35b96557 416 #define OB_PCROP_Pages736to767 ((uint32_t)0x00800000) /* PC Read/Write protection of Sector23 */
Kojto 99:dbbf35b96557 417 #define OB_PCROP_Pages768to799 ((uint32_t)0x01000000) /* PC Read/Write protection of Sector24 */
Kojto 99:dbbf35b96557 418 #define OB_PCROP_Pages800to831 ((uint32_t)0x02000000) /* PC Read/Write protection of Sector25 */
Kojto 99:dbbf35b96557 419 #define OB_PCROP_Pages832to863 ((uint32_t)0x04000000) /* PC Read/Write protection of Sector26 */
Kojto 99:dbbf35b96557 420 #define OB_PCROP_Pages864to895 ((uint32_t)0x08000000) /* PC Read/Write protection of Sector27 */
Kojto 99:dbbf35b96557 421 #define OB_PCROP_Pages896to927 ((uint32_t)0x10000000) /* PC Read/Write protection of Sector28 */
Kojto 99:dbbf35b96557 422 #define OB_PCROP_Pages928to959 ((uint32_t)0x20000000) /* PC Read/Write protection of Sector29 */
Kojto 99:dbbf35b96557 423 #define OB_PCROP_Pages960to991 ((uint32_t)0x40000000) /* PC Read/Write protection of Sector30 */
Kojto 99:dbbf35b96557 424 #define OB_PCROP_Pages992to1023 ((uint32_t)0x80000000) /* PC Read/Write protection of Sector31 */
Kojto 99:dbbf35b96557 425 #define OB_PCROP_AllPages ((uint32_t)0xFFFFFFFF) /*!<PC Read/Write protection of all Sectors */
Kojto 99:dbbf35b96557 426 /**
Kojto 99:dbbf35b96557 427 * @}
Kojto 99:dbbf35b96557 428 */
Kojto 99:dbbf35b96557 429
Kojto 99:dbbf35b96557 430 /** @defgroup FLASHEx_Option_Bytes_ReadWrite_Protection2 FLASHEx Option Bytes Read Write Protection
Kojto 99:dbbf35b96557 431 * @{
Kojto 99:dbbf35b96557 432 */
Kojto 99:dbbf35b96557 433 #define OB_PCROP2_Pages1024to1055 ((uint32_t)0x00000001) /* PC Read/Write protection of Sector32 */
Kojto 99:dbbf35b96557 434 #define OB_PCROP2_Pages1056to1087 ((uint32_t)0x00000002) /* PC Read/Write protection of Sector33 */
Kojto 99:dbbf35b96557 435 #define OB_PCROP2_Pages1088to1119 ((uint32_t)0x00000004) /* PC Read/Write protection of Sector34 */
Kojto 99:dbbf35b96557 436 #define OB_PCROP2_Pages1120to1151 ((uint32_t)0x00000008) /* PC Read/Write protection of Sector35 */
Kojto 99:dbbf35b96557 437 #define OB_PCROP2_Pages1152to1183 ((uint32_t)0x00000010) /* PC Read/Write protection of Sector36 */
Kojto 99:dbbf35b96557 438 #define OB_PCROP2_Pages1184to1215 ((uint32_t)0x00000020) /* PC Read/Write protection of Sector37 */
Kojto 99:dbbf35b96557 439 #define OB_PCROP2_Pages1216to1247 ((uint32_t)0x00000040) /* PC Read/Write protection of Sector38 */
Kojto 99:dbbf35b96557 440 #define OB_PCROP2_Pages1248to1279 ((uint32_t)0x00000080) /* PC Read/Write protection of Sector39 */
Kojto 99:dbbf35b96557 441 #define OB_PCROP2_Pages1280to1311 ((uint32_t)0x00000100) /* PC Read/Write protection of Sector40 */
Kojto 99:dbbf35b96557 442 #define OB_PCROP2_Pages1312to1343 ((uint32_t)0x00000200) /* PC Read/Write protection of Sector41 */
Kojto 99:dbbf35b96557 443 #define OB_PCROP2_Pages1344to1375 ((uint32_t)0x00000400) /* PC Read/Write protection of Sector42 */
Kojto 99:dbbf35b96557 444 #define OB_PCROP2_Pages1376to1407 ((uint32_t)0x00000800) /* PC Read/Write protection of Sector43 */
Kojto 99:dbbf35b96557 445 #define OB_PCROP2_Pages1408to1439 ((uint32_t)0x00001000) /* PC Read/Write protection of Sector44 */
Kojto 99:dbbf35b96557 446 #define OB_PCROP2_Pages1440to1471 ((uint32_t)0x00002000) /* PC Read/Write protection of Sector45 */
Kojto 99:dbbf35b96557 447 #define OB_PCROP2_Pages1472to1503 ((uint32_t)0x00004000) /* PC Read/Write protection of Sector46 */
Kojto 99:dbbf35b96557 448 #define OB_PCROP2_Pages1504to1535 ((uint32_t)0x00008000) /* PC Read/Write protection of Sector47 */
Kojto 99:dbbf35b96557 449 #define OB_PCROP2_AllPages ((uint32_t)0x0000FFFF) /*!< PC Read/Write protection of all Sectors PCROP2 */
Kojto 99:dbbf35b96557 450 /**
Kojto 99:dbbf35b96557 451 * @}
Kojto 99:dbbf35b96557 452 */
Kojto 99:dbbf35b96557 453 #endif /* if STM32L071xx || STM32L072xx || STM32L073xx || STM32L081xx || STM32L082xx || STM32L083xx */
Kojto 99:dbbf35b96557 454
Kojto 99:dbbf35b96557 455 /** @defgroup FLASHEx_Option_Bytes_BOOTBit1
Kojto 99:dbbf35b96557 456 * @{
Kojto 99:dbbf35b96557 457 */
Kojto 99:dbbf35b96557 458 #define OB_BOOT_BIT1_RESET (uint8_t)(0x00) /*!< BOOT Bit 1 Reset */
Kojto 99:dbbf35b96557 459 #define OB_BOOT_BIT1_SET (uint8_t)(0x01) /*!< BOOT Bit 1 Set */
Kojto 99:dbbf35b96557 460 /**
Kojto 99:dbbf35b96557 461 * @}
Kojto 99:dbbf35b96557 462 */
Kojto 99:dbbf35b96557 463
Kojto 99:dbbf35b96557 464 #if defined (STM32L071xx) || defined (STM32L072xx) || defined (STM32L073xx) || defined (STM32L081xx) || defined (STM32L082xx) || defined (STM32L083xx)
Kojto 99:dbbf35b96557 465 /** @defgroup FLASHEx_Option_Bytes_BOOT_BANK FLASHEx Option Bytes BOOT BANK
Kojto 99:dbbf35b96557 466 * @{
Kojto 99:dbbf35b96557 467 */
Kojto 99:dbbf35b96557 468 #define OB_BOOT_BANK1 ((uint8_t)0x00) /*!< At startup, if boot pin 0 and BOOT1 bit are set in boot from user Flash position
Kojto 99:dbbf35b96557 469 and this parameter is selected the device will boot from Bank 2
Kojto 99:dbbf35b96557 470 or Bank 1, depending on the activation of the bank */
Kojto 99:dbbf35b96557 471 #define OB_BOOT_BANK2 (uint8_t)(0x01) /*!< At startup, if boot pin 0 and BOOT1 bit are set in boot from user Flash position
Kojto 99:dbbf35b96557 472 and this parameter is selected the device will boot from Bank1(Default) */
Kojto 99:dbbf35b96557 473 /**
Kojto 99:dbbf35b96557 474 * @}
Kojto 99:dbbf35b96557 475 */
Kojto 99:dbbf35b96557 476 #endif /* if STM32L071xx || STM32L072xx || STM32L073xx || STM32L081xx || STM32L082xx || STM32L083xx */
Kojto 99:dbbf35b96557 477
Kojto 99:dbbf35b96557 478 /** @defgroup FLASHEx_Type_Program_Data FLASHEx Type Program Data
Kojto 99:dbbf35b96557 479 * @{
Kojto 99:dbbf35b96557 480 */
Kojto 99:dbbf35b96557 481 #define FLASH_TYPEPROGRAMDATA_BYTE ((uint32_t)0x00) /*!< Program byte (8-bit) at a specified address.*/
Kojto 99:dbbf35b96557 482 #define FLASH_TYPEPROGRAMDATA_HALFWORD ((uint32_t)0x01) /*!< Program a half-word (16-bit) at a specified address.*/
Kojto 99:dbbf35b96557 483 #define FLASH_TYPEPROGRAMDATA_WORD ((uint32_t)0x02) /*!< Program a word (32-bit) at a specified address.*/
Kojto 99:dbbf35b96557 484
Kojto 99:dbbf35b96557 485 /* Aliases for compatibility with the V1.0.0 package */
Kojto 99:dbbf35b96557 486 #define FLASH_TYPEPROGRAM_BYTE FLASH_TYPEPROGRAMDATA_BYTE
Kojto 99:dbbf35b96557 487 #define FLASH_TYPEPROGRAM_HALFWORD FLASH_TYPEPROGRAMDATA_HALFWORD
Kojto 99:dbbf35b96557 488 /**
Kojto 99:dbbf35b96557 489 * @}
Kojto 99:dbbf35b96557 490 */
Kojto 99:dbbf35b96557 491
Kojto 99:dbbf35b96557 492 /** @defgroup FLASHEx_Address FLASHEx Address
Kojto 99:dbbf35b96557 493 * @{
Kojto 99:dbbf35b96557 494 */
Kojto 99:dbbf35b96557 495 #define FLASH_NBPAGES_MAX (FLASH_SIZE / FLASH_PAGE_SIZE)
Kojto 99:dbbf35b96557 496 /**
Kojto 99:dbbf35b96557 497 * @}
Kojto 99:dbbf35b96557 498 */
Kojto 99:dbbf35b96557 499
Kojto 99:dbbf35b96557 500 /**
Kojto 99:dbbf35b96557 501 * @}
Kojto 99:dbbf35b96557 502 */
Kojto 99:dbbf35b96557 503
Kojto 99:dbbf35b96557 504 /** @defgroup FLASHEx_Exported_Macros macros to control FLASH features
Kojto 99:dbbf35b96557 505 * @brief
Kojto 99:dbbf35b96557 506 * @{
Kojto 99:dbbf35b96557 507 */
Kojto 99:dbbf35b96557 508
Kojto 99:dbbf35b96557 509 /**
Kojto 99:dbbf35b96557 510 * @brief Set the FLASH Latency.
Kojto 99:dbbf35b96557 511 * @param __LATENCY__: FLASH Latency
Kojto 99:dbbf35b96557 512 * This parameter can be one of the following values:
Kojto 99:dbbf35b96557 513 * @arg FLASH_LATENCY_0: FLASH Zero Latency cycle
Kojto 99:dbbf35b96557 514 * @arg FLASH_LATENCY_1: FLASH One Latency cycle
Kojto 99:dbbf35b96557 515 * @retval none
Kojto 99:dbbf35b96557 516 */
Kojto 99:dbbf35b96557 517 #define __HAL_FLASH_SET_LATENCY(__LATENCY__) \
Kojto 99:dbbf35b96557 518 MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(__LATENCY__))
Kojto 99:dbbf35b96557 519
Kojto 99:dbbf35b96557 520 /**
Kojto 99:dbbf35b96557 521 * @brief Enable/Disable the FLASH prefetch buffer.
Kojto 99:dbbf35b96557 522 * @retval none
Kojto 99:dbbf35b96557 523 */
Kojto 99:dbbf35b96557 524 #define __HAL_FLASH_PREFETCH_BUFFER_ENABLE() CLEAR_BIT((FLASH->ACR), FLASH_ACR_PRFTEN)
Kojto 99:dbbf35b96557 525 #define __HAL_FLASH_PREFETCH_BUFFER_DISABLE() SET_BIT((FLASH->ACR), FLASH_ACR_PRFTEN)
Kojto 99:dbbf35b96557 526
Kojto 99:dbbf35b96557 527 /**
Kojto 99:dbbf35b96557 528 * @brief Enable/Disable the FLASH Buffer cache.
Kojto 99:dbbf35b96557 529 * @retval none
Kojto 99:dbbf35b96557 530 */
Kojto 99:dbbf35b96557 531 #define __HAL_FLASH_BUFFER_CACHE_ENABLE() SET_BIT((FLASH->ACR), FLASH_ACR_DISAB_BUF)
Kojto 99:dbbf35b96557 532 #define __HAL_FLASH_BUFFER_CACHE_DISABLE() CLEAR_BIT((FLASH->ACR), FLASH_ACR_DISAB_BUF)
Kojto 99:dbbf35b96557 533
Kojto 99:dbbf35b96557 534 /**
Kojto 99:dbbf35b96557 535 * @brief Enable/Disable the FLASH preread buffer.
Kojto 99:dbbf35b96557 536 * @retval none
Kojto 99:dbbf35b96557 537 */
Kojto 99:dbbf35b96557 538 #define __HAL_FLASH_PREREAD_BUFFER_ENABLE() SET_BIT((FLASH->ACR), FLASH_ACR_PRE_READ)
Kojto 99:dbbf35b96557 539 #define __HAL_FLASH_PREREAD_BUFFER_DISABLE() CLEAR_BIT((FLASH->ACR), FLASH_ACR_PRE_READ)
Kojto 99:dbbf35b96557 540
Kojto 99:dbbf35b96557 541 /**
Kojto 99:dbbf35b96557 542 * @brief Enable/Disable the FLASH power down during Sleep mode.
Kojto 99:dbbf35b96557 543 * @retval none
Kojto 99:dbbf35b96557 544 */
Kojto 99:dbbf35b96557 545 #define __HAL_FLASH_SLEEP_POWERDOWN_ENABLE() SET_BIT(FLASH->ACR, FLASH_ACR_SLEEP_PD)
Kojto 99:dbbf35b96557 546 #define __HAL_FLASH_SLEEP_POWERDOWN_DISABLE() CLEAR_BIT(FLASH->ACR, FLASH_ACR_SLEEP_PD)
Kojto 99:dbbf35b96557 547
Kojto 99:dbbf35b96557 548 /**
Kojto 99:dbbf35b96557 549 * @brief Enable the Flash Run power down mode.
Kojto 99:dbbf35b96557 550 * @note Writing this bit to 0 this bit, automatically the keys are
Kojto 99:dbbf35b96557 551 * loss and a new unlock sequence is necessary to re-write it to 1.
Kojto 99:dbbf35b96557 552 */
Kojto 99:dbbf35b96557 553 #define __HAL_FLASH_POWER_DOWN_ENABLE() do { FLASH->PDKEYR = FLASH_PDKEY1; \
Kojto 99:dbbf35b96557 554 FLASH->PDKEYR = FLASH_PDKEY2; \
Kojto 99:dbbf35b96557 555 SET_BIT((FLASH->ACR), FLASH_ACR_RUN_PD); \
Kojto 99:dbbf35b96557 556 } while (0)
Kojto 99:dbbf35b96557 557
Kojto 99:dbbf35b96557 558 /**
Kojto 99:dbbf35b96557 559 * @brief Disable the Flash Run power down mode.
Kojto 99:dbbf35b96557 560 * @note Writing this bit to 0 this bit, automatically the keys are
Kojto 99:dbbf35b96557 561 * loss and a new unlock sequence is necessary to re-write it to 1.
Kojto 99:dbbf35b96557 562 */
Kojto 99:dbbf35b96557 563 #define __HAL_FLASH_POWER_DOWN_DISABLE() do { FLASH->PDKEYR = FLASH_PDKEY1; \
Kojto 99:dbbf35b96557 564 FLASH->PDKEYR = FLASH_PDKEY2; \
Kojto 99:dbbf35b96557 565 CLEAR_BIT((FLASH->ACR), FLASH_ACR_RUN_PD); \
Kojto 99:dbbf35b96557 566 } while (0)
Kojto 99:dbbf35b96557 567
Kojto 99:dbbf35b96557 568 /**
Kojto 99:dbbf35b96557 569 * @}
Kojto 99:dbbf35b96557 570 */
Kojto 99:dbbf35b96557 571
Kojto 99:dbbf35b96557 572 /** @defgroup FLASHEx_Exported_Functions FLASHEx Exported functions
Kojto 99:dbbf35b96557 573 * @{
Kojto 99:dbbf35b96557 574 */
Kojto 99:dbbf35b96557 575
Kojto 99:dbbf35b96557 576 /** @defgroup FLASHEx_Exported_Functions_Group1 FLASH Memory Erasing functions
Kojto 99:dbbf35b96557 577 * @{
Kojto 99:dbbf35b96557 578 */
Kojto 99:dbbf35b96557 579 HAL_StatusTypeDef HAL_FLASHEx_Erase(FLASH_EraseInitTypeDef *pEraseInit, uint32_t *PageError);
Kojto 99:dbbf35b96557 580 HAL_StatusTypeDef HAL_FLASHEx_Erase_IT(FLASH_EraseInitTypeDef *pEraseInit);
Kojto 99:dbbf35b96557 581 /**
Kojto 99:dbbf35b96557 582 * @}
Kojto 99:dbbf35b96557 583 */
Kojto 99:dbbf35b96557 584
Kojto 99:dbbf35b96557 585 /** @defgroup FLASHEx_Exported_Functions_Group2 Option Bytes Programming functions
Kojto 99:dbbf35b96557 586 * @{
Kojto 99:dbbf35b96557 587 */
Kojto 99:dbbf35b96557 588 HAL_StatusTypeDef HAL_FLASHEx_OBProgram(FLASH_OBProgramInitTypeDef *pOBInit);
Kojto 99:dbbf35b96557 589 void HAL_FLASHEx_OBGetConfig(FLASH_OBProgramInitTypeDef *pOBInit);
Kojto 99:dbbf35b96557 590 HAL_StatusTypeDef HAL_FLASHEx_AdvOBProgram (FLASH_AdvOBProgramInitTypeDef *pAdvOBInit);
Kojto 99:dbbf35b96557 591 void HAL_FLASHEx_AdvOBGetConfig(FLASH_AdvOBProgramInitTypeDef *pAdvOBInit);
Kojto 99:dbbf35b96557 592 HAL_StatusTypeDef HAL_FLASHEx_OB_SelectPCROP(void);
Kojto 99:dbbf35b96557 593 HAL_StatusTypeDef HAL_FLASHEx_OB_DeSelectPCROP(void);
Kojto 99:dbbf35b96557 594 /**
Kojto 99:dbbf35b96557 595 * @}
Kojto 99:dbbf35b96557 596 */
Kojto 99:dbbf35b96557 597
Kojto 99:dbbf35b96557 598 /** @defgroup FLASHEx_Exported_Functions_Group3 DATA EEPROM Programming functions
Kojto 99:dbbf35b96557 599 * @{
Kojto 99:dbbf35b96557 600 */
Kojto 99:dbbf35b96557 601 HAL_StatusTypeDef HAL_FLASHEx_DATAEEPROM_Unlock(void);
Kojto 99:dbbf35b96557 602 HAL_StatusTypeDef HAL_FLASHEx_DATAEEPROM_Lock(void);
Kojto 99:dbbf35b96557 603 HAL_StatusTypeDef HAL_FLASHEx_DATAEEPROM_Erase(uint32_t Address);
Kojto 99:dbbf35b96557 604 HAL_StatusTypeDef HAL_FLASHEx_DATAEEPROM_Program(uint32_t TypeProgram, uint32_t Address, uint32_t Data);
Kojto 99:dbbf35b96557 605 void HAL_FLASHEx_DATAEEPROM_EnableFixedTimeProgram(void);
Kojto 99:dbbf35b96557 606 void HAL_FLASHEx_DATAEEPROM_DisableFixedTimeProgram(void);
Kojto 99:dbbf35b96557 607
Kojto 99:dbbf35b96557 608 /**
Kojto 99:dbbf35b96557 609 * @}
Kojto 99:dbbf35b96557 610 */
Kojto 99:dbbf35b96557 611
Kojto 99:dbbf35b96557 612 /**
Kojto 99:dbbf35b96557 613 * @}
Kojto 99:dbbf35b96557 614 */
Kojto 99:dbbf35b96557 615
Kojto 99:dbbf35b96557 616 /** @addtogroup FLASH_Private_Macros FLASH Private Macros
Kojto 99:dbbf35b96557 617 * @{
Kojto 99:dbbf35b96557 618 */
Kojto 99:dbbf35b96557 619 #define IS_FLASH_TYPEERASE(__VALUE__) (((__VALUE__) == FLASH_TYPEERASE_PAGES))
Kojto 99:dbbf35b96557 620
Kojto 99:dbbf35b96557 621 #define IS_OPTIONBYTE(__VALUE__) (((__VALUE__) <= (OPTIONBYTE_WRP | OPTIONBYTE_RDP | \
Kojto 99:dbbf35b96557 622 OPTIONBYTE_USER | OPTIONBYTE_BOR | OPTIONBYTE_BOOT_BIT1)))
Kojto 99:dbbf35b96557 623
Kojto 99:dbbf35b96557 624 #define IS_WRPSTATE(__VALUE__) (((__VALUE__) == OB_WRPSTATE_DISABLE) || \
Kojto 99:dbbf35b96557 625 ((__VALUE__) == OB_WRPSTATE_ENABLE))
Kojto 99:dbbf35b96557 626
Kojto 99:dbbf35b96557 627 #define IS_OB_WRP(PAGE) (((PAGE) != 0x0000000))
Kojto 99:dbbf35b96557 628
Kojto 99:dbbf35b96557 629 #define IS_OB_RDP(__LEVEL__) (((__LEVEL__) == OB_RDP_LEVEL0)||\
Kojto 99:dbbf35b96557 630 ((__LEVEL__) == OB_RDP_LEVEL1)||\
Kojto 99:dbbf35b96557 631 ((__LEVEL__) == OB_RDP_LEVEL2))
Kojto 99:dbbf35b96557 632
Kojto 99:dbbf35b96557 633 #define IS_OB_BOR_LEVEL(__LEVEL__) ( ((__LEVEL__) == OB_BOR_OFF) || \
Kojto 99:dbbf35b96557 634 ((__LEVEL__) == OB_BOR_LEVEL1) || \
Kojto 99:dbbf35b96557 635 ((__LEVEL__) == OB_BOR_LEVEL2) || \
Kojto 99:dbbf35b96557 636 ((__LEVEL__) == OB_BOR_LEVEL3) || \
Kojto 99:dbbf35b96557 637 ((__LEVEL__) == OB_BOR_LEVEL4) || \
Kojto 99:dbbf35b96557 638 ((__LEVEL__) == OB_BOR_LEVEL5))
Kojto 99:dbbf35b96557 639
Kojto 99:dbbf35b96557 640 #define IS_OB_IWDG_SOURCE(__SOURCE__) (((__SOURCE__) == OB_IWDG_SW) || ((__SOURCE__) == OB_IWDG_HW))
Kojto 99:dbbf35b96557 641
Kojto 99:dbbf35b96557 642 #define IS_OB_STOP_SOURCE(__SOURCE__) (((__SOURCE__) == OB_STOP_NORST) || ((__SOURCE__) == OB_STOP_RST))
Kojto 99:dbbf35b96557 643
Kojto 99:dbbf35b96557 644 #define IS_OB_STDBY_SOURCE(__SOURCE__) (((__SOURCE__) == OB_STDBY_NORST) || ((__SOURCE__) == OB_STDBY_RST))
Kojto 99:dbbf35b96557 645
Kojto 99:dbbf35b96557 646 #define IS_PCROPSTATE(VALUE)(((VALUE) == OB_PCROP_STATE_DISABLE) || \
Kojto 99:dbbf35b96557 647 ((VALUE) == OB_PCROP_STATE_ENABLE))
Kojto 99:dbbf35b96557 648
Kojto 99:dbbf35b96557 649 #define IS_OB_PCROP(__PAGE__) (((__PAGE__) != 0x0000000))
Kojto 99:dbbf35b96557 650
Kojto 99:dbbf35b96557 651 #define IS_OB_BOOT1(__BOOT_BIT1__) (((__BOOT_BIT1__) == OB_BOOT_BIT1_RESET) || ((__BOOT_BIT1__) == OB_BOOT_BIT1_SET))
Kojto 99:dbbf35b96557 652
Kojto 99:dbbf35b96557 653 #define IS_TYPEPROGRAMDATA(__VALUE__) (((__VALUE__) == FLASH_TYPEPROGRAMDATA_BYTE) || \
Kojto 99:dbbf35b96557 654 ((__VALUE__) == FLASH_TYPEPROGRAMDATA_HALFWORD) || \
Kojto 99:dbbf35b96557 655 ((__VALUE__) == FLASH_TYPEPROGRAMDATA_WORD))
Kojto 99:dbbf35b96557 656
Kojto 99:dbbf35b96557 657 #define IS_NBPAGES(__PAGES__) (((__PAGES__) >= 1) && ((__PAGES__) <= FLASH_NBPAGES_MAX))
Kojto 99:dbbf35b96557 658
Kojto 99:dbbf35b96557 659 #if defined (STM32L071xx) || defined (STM32L072xx) || defined (STM32L073xx) || defined (STM32L081xx) || defined (STM32L082xx) || defined (STM32L083xx)
Kojto 99:dbbf35b96557 660 #define IS_OBEX(__VALUE__)(((__VALUE__) <= (OPTIONBYTE_PCROP | OPTIONBYTE_BOOTCONFIG)))
Kojto 99:dbbf35b96557 661 #define IS_OB_BOOT_BANK(__BANK__) (((__BANK__) == OB_BOOT_BANK2) || ((__BANK__) == OB_BOOT_BANK1))
Kojto 99:dbbf35b96557 662 #define IS_FLASH_DATA_ADDRESS(__ADDRESS__) (((__ADDRESS__) >= DATA_EEPROM_BASE) && ((__ADDRESS__) <= DATA_EEPROM_BANK2_END))
Kojto 99:dbbf35b96557 663 #define IS_FLASH_DATA_BANK1_ADDRESS(__ADDRESS__) (((__ADDRESS__) >= DATA_EEPROM_BASE) && ((__ADDRESS__) <= DATA_EEPROM_BANK1_END))
Kojto 99:dbbf35b96557 664 #define IS_FLASH_DATA_BANK2_ADDRESS(__ADDRESS__) (((__ADDRESS__) >= DATA_EEPROM_BANK2_BASE) && ((__ADDRESS__) <= DATA_EEPROM_BANK2_END))
Kojto 99:dbbf35b96557 665 #define IS_FLASH_PROGRAM_ADDRESS(__ADDRESS__) (((__ADDRESS__) >= FLASH_BASE) && ((__ADDRESS__) < (FLASH_BASE + FLASH_SIZE)))
Kojto 99:dbbf35b96557 666 #define IS_FLASH_PROGRAM_BANK1_ADDRESS(__ADDRESS__) (((__ADDRESS__) >= FLASH_BASE) && ((__ADDRESS__) < (FLASH_BASE + (FLASH_SIZE >> 1))))
Kojto 99:dbbf35b96557 667 #define IS_FLASH_PROGRAM_BANK2_ADDRESS(__ADDRESS__) (((__ADDRESS__) >= FLASH_BANK2_BASE) && ((__ADDRESS__) < (FLASH_BASE + FLASH_SIZE)))
Kojto 99:dbbf35b96557 668 #else
Kojto 99:dbbf35b96557 669 #define IS_OBEX(VALUE)((VALUE) == OPTIONBYTE_PCROP)
Kojto 99:dbbf35b96557 670 #define IS_FLASH_DATA_ADDRESS(__ADDRESS__) (((__ADDRESS__) >= DATA_EEPROM_BASE) && ((__ADDRESS__) <= DATA_EEPROM_END))
Kojto 99:dbbf35b96557 671 #define IS_FLASH_PROGRAM_ADDRESS(__ADDRESS__) (((__ADDRESS__) >= FLASH_BASE) && ((__ADDRESS__) < (FLASH_BASE + FLASH_SIZE)))
Kojto 99:dbbf35b96557 672 #endif
Kojto 99:dbbf35b96557 673 /**
Kojto 99:dbbf35b96557 674 * @}
Kojto 99:dbbf35b96557 675 */
Kojto 99:dbbf35b96557 676
Kojto 99:dbbf35b96557 677 /**
Kojto 99:dbbf35b96557 678 * @}
Kojto 99:dbbf35b96557 679 */
Kojto 99:dbbf35b96557 680
Kojto 99:dbbf35b96557 681 /**
Kojto 99:dbbf35b96557 682 * @}
Kojto 99:dbbf35b96557 683 */
Kojto 99:dbbf35b96557 684
Kojto 99:dbbf35b96557 685 #ifdef __cplusplus
Kojto 99:dbbf35b96557 686 }
Kojto 99:dbbf35b96557 687 #endif
Kojto 99:dbbf35b96557 688
Kojto 99:dbbf35b96557 689 #endif /* __STM32L0xx_HAL_FLASH_EX_H */
Kojto 99:dbbf35b96557 690
Kojto 99:dbbf35b96557 691 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Kojto 99:dbbf35b96557 692