STM32F103xB HAL User Manual
Defines | Functions | Variables
stm32f1xx_hal_flash_ex.c File Reference

Extended FLASH HAL module driver. More...

#include "stm32f1xx_hal.h"

Go to the source code of this file.

Defines

#define FLASH_POSITION_IWDGSW_BIT   FLASH_OBR_IWDG_SW_Pos
#define FLASH_POSITION_OB_USERDATA0_BIT   FLASH_OBR_DATA0_Pos
#define FLASH_POSITION_OB_USERDATA1_BIT   FLASH_OBR_DATA1_Pos

Functions

static void FLASH_MassErase (uint32_t Banks)
 Full erase of FLASH memory Bank.
void FLASH_PageErase (uint32_t PageAddress)
 Erase the specified FLASH memory page.
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.

Variables

FLASH_ProcessTypeDef pFlash

Detailed Description

Extended FLASH HAL module driver.

Author:
MCD Application Team 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. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file stm32f1xx_hal_flash_ex.c.