Arrow / Mbed OS DAPLink Reset
Embed: (wiki syntax)

« Back to documentation index

stm32f1xx_hal_flash_ex.c File Reference

stm32f1xx_hal_flash_ex.c File Reference

Extended FLASH HAL module driver. More...

Go to the source code of this file.

Functions

static void FLASH_MassErase (uint32_t Banks)
 Full erase of FLASH memory Bank.
static HAL_StatusTypeDef FLASH_OB_EnableWRP (uint32_t WriteProtectPage)
 Enable the write protection of the desired pages.
static HAL_StatusTypeDef FLASH_OB_DisableWRP (uint32_t WriteProtectPage)
 Disable the write protection of the desired pages.
static HAL_StatusTypeDef FLASH_OB_RDP_LevelConfig (uint8_t ReadProtectLevel)
 Set the read protection level.
static HAL_StatusTypeDef FLASH_OB_UserConfig (uint8_t UserConfig)
 Program the FLASH User Option Byte.
static HAL_StatusTypeDef FLASH_OB_ProgramData (uint32_t Address, uint8_t Data)
 Programs a half word at a specified Option Byte Data address.
static uint32_t FLASH_OB_GetWRP (void)
 Return the FLASH Write Protection Option Bytes value.
static uint32_t FLASH_OB_GetRDP (void)
 Returns the FLASH Read Protection level.
static uint8_t FLASH_OB_GetUser (void)
 Return the FLASH User Option Byte value.
HAL_StatusTypeDef HAL_FLASHEx_Erase (FLASH_EraseInitTypeDef *pEraseInit, uint32_t *PageError)
 Perform a mass erase or erase the specified FLASH memory pages.
HAL_StatusTypeDef HAL_FLASHEx_Erase_IT (FLASH_EraseInitTypeDef *pEraseInit)
 Perform a mass erase or erase the specified FLASH memory pages with interrupt enabled.
HAL_StatusTypeDef HAL_FLASHEx_OBErase (void)
 Erases the FLASH option bytes.
HAL_StatusTypeDef HAL_FLASHEx_OBProgram (FLASH_OBProgramInitTypeDef *pOBInit)
 Program option bytes.
void HAL_FLASHEx_OBGetConfig (FLASH_OBProgramInitTypeDef *pOBInit)
 Get the Option byte configuration.
uint32_t HAL_FLASHEx_OBGetUserData (uint32_t DATAAdress)
 Get the Option byte user data.
void FLASH_PageErase (uint32_t PageAddress)
 Erase the specified FLASH memory page.

Detailed Description

Extended FLASH HAL module driver.

Author:
MCD Application Team
Version:
V1.0.4
Date:
29-April-2016 This file provides firmware functions to manage the following functionalities of the FLASH peripheral: + Extended Initialization/de-initialization functions + Extended I/O operation functions + Extended Peripheral Control functions
  ==============================================================================
               ##### Flash peripheral extended features  #####
  ==============================================================================
           
                      ##### How to use this driver #####
  ==============================================================================
  [..] This driver provides functions to configure and program the FLASH memory 
       of all STM32F1xxx devices. It includes
       
        (++) Set/Reset the write protection
        (++) Program the user Option Bytes
        (++) Get the Read protection Level
  
  
Attention:

© COPYRIGHT(c) 2016 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file stm32f1xx_hal_flash_ex.c.