STM32L4xx_HAL_Driver  1.14.0
stm32l4xx_hal_flash_ex.h
Go to the documentation of this file.
1 
20 /* Define to prevent recursive inclusion -------------------------------------*/
21 #ifndef __STM32L4xx_HAL_FLASH_EX_H
22 #define __STM32L4xx_HAL_FLASH_EX_H
23 
24 #ifdef __cplusplus
25  extern "C" {
26 #endif
27 
28 /* Includes ------------------------------------------------------------------*/
29 #include "stm32l4xx_hal_def.h"
30 
39 /* Exported types ------------------------------------------------------------*/
40 
41 /* Exported constants --------------------------------------------------------*/
42 #if defined (FLASH_CFGR_LVEN)
43 
49 #define FLASH_LVE_PIN_CTRL 0x00000000U
50 #define FLASH_LVE_PIN_FORCED FLASH_CFGR_LVEN
58 #endif /* FLASH_CFGR_LVEN */
59 
60 /* Exported macro ------------------------------------------------------------*/
61 
62 /* Exported functions --------------------------------------------------------*/
67 /* Extended Program operation functions *************************************/
71 HAL_StatusTypeDef HAL_FLASHEx_Erase(FLASH_EraseInitTypeDef *pEraseInit, uint32_t *PageError);
72 HAL_StatusTypeDef HAL_FLASHEx_Erase_IT(FLASH_EraseInitTypeDef *pEraseInit);
73 HAL_StatusTypeDef HAL_FLASHEx_OBProgram(FLASH_OBProgramInitTypeDef *pOBInit);
79 #if defined (FLASH_CFGR_LVEN)
80 
83 HAL_StatusTypeDef HAL_FLASHEx_ConfigLVEPin(uint32_t ConfigLVE);
87 #endif /* FLASH_CFGR_LVEN */
88 
93 /* Private function ----------------------------------------------------------*/
97 void FLASH_PageErase(uint32_t Page, uint32_t Banks);
98 void FLASH_FlushCaches(void);
103 /* Private macros ------------------------------------------------------------*/
107 #if defined (FLASH_CFGR_LVEN)
108 #define IS_FLASH_LVE_PIN(CFG) (((CFG) == FLASH_LVE_PIN_CTRL) || ((CFG) == FLASH_LVE_PIN_FORCED))
109 #endif /* FLASH_CFGR_LVEN */
110 
122 #ifdef __cplusplus
123 }
124 #endif
125 
126 #endif /* __STM32L4xx_HAL_FLASH_EX_H */
127 
128 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
HAL_StatusTypeDef HAL_FLASHEx_ConfigLVEPin(uint32_t ConfigLVE)
Configuration of the LVE pin of the Flash (managed by power controller or forced to low in order to u...
void FLASH_PageErase(uint32_t Page, uint32_t Banks)
Erase the specified FLASH memory page.
This file contains HAL common defines, enumeration, macros and structures definitions.
void FLASH_FlushCaches(void)
Flush the instruction and data caches.
void HAL_FLASHEx_OBGetConfig(FLASH_OBProgramInitTypeDef *pOBInit)
Get the Option bytes configuration.
HAL_StatusTypeDef HAL_FLASHEx_Erase(FLASH_EraseInitTypeDef *pEraseInit, uint32_t *PageError)
Perform a mass erase or erase the specified FLASH memory pages.
FLASH Option Bytes Program structure definition.
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_OBProgram(FLASH_OBProgramInitTypeDef *pOBInit)
Program Option bytes.