|
STM32G474xx HAL用户手册
|
00001 /** 00002 ****************************************************************************** 00003 * @file stm32g4xx_hal_flash_ex.h 00004 * @author MCD Application Team 00005 * @brief Header file of FLASH HAL Extended module. 00006 ****************************************************************************** 00007 * @attention 00008 * 00009 * Copyright (c) 2019 STMicroelectronics. 00010 * All rights reserved. 00011 * 00012 * This software is licensed under terms that can be found in the LICENSE file in 00013 * the root directory of this software component. 00014 * If no LICENSE file comes with this software, it is provided AS-IS. 00015 ****************************************************************************** 00016 */ 00017 00018 /* Define to prevent recursive inclusion -------------------------------------*/ 00019 #ifndef STM32G4xx_HAL_FLASH_EX_H 00020 #define STM32G4xx_HAL_FLASH_EX_H 00021 00022 #ifdef __cplusplus 00023 extern "C" { 00024 #endif 00025 00026 /* Includes ------------------------------------------------------------------*/ 00027 #include "stm32g4xx_hal_def.h" 00028 00029 /** @addtogroup STM32G4xx_HAL_Driver 00030 * @{ 00031 */ 00032 00033 /** @addtogroup FLASHEx 00034 * @{ 00035 */ 00036 00037 /* Exported types ------------------------------------------------------------*/ 00038 00039 /* Exported constants --------------------------------------------------------*/ 00040 00041 /* Exported macro ------------------------------------------------------------*/ 00042 00043 /* Exported functions --------------------------------------------------------*/ 00044 /** @addtogroup FLASHEx_Exported_Functions 00045 * @{ 00046 */ 00047 00048 /* Extended Program operation functions *************************************/ 00049 /** @addtogroup FLASHEx_Exported_Functions_Group1 00050 * @{ 00051 */ 00052 HAL_StatusTypeDef HAL_FLASHEx_Erase(FLASH_EraseInitTypeDef *pEraseInit, uint32_t *PageError); 00053 HAL_StatusTypeDef HAL_FLASHEx_Erase_IT(FLASH_EraseInitTypeDef *pEraseInit); 00054 HAL_StatusTypeDef HAL_FLASHEx_OBProgram(FLASH_OBProgramInitTypeDef *pOBInit); 00055 void HAL_FLASHEx_OBGetConfig(FLASH_OBProgramInitTypeDef *pOBInit); 00056 HAL_StatusTypeDef HAL_FLASHEx_EnableSecMemProtection(uint32_t Bank); 00057 void HAL_FLASHEx_EnableDebugger(void); 00058 void HAL_FLASHEx_DisableDebugger(void); 00059 /** * @} */ */ 00060 /** * @} */ */ 00061 /** * @} */ */ 00062 00063 /** * @} */ */ 00064 /** * @} */ */ 00065 /** * @} */ */ 00066 00067 /** @addtogroup FLASHEx_Private_Functions 00068 * @{ 00069 */ 00070 void FLASH_PageErase(uint32_t Page, uint32_t Banks); 00071 void FLASH_FlushCaches(void); 00072 /** * @} */ */ 00073 /** * @} */ */ 00074 00075 /** * @} */ */ 00076 /** * @} */ */ 00077 /** * @} */ */ 00078 00079 /** * @} */ */ 00080 /** * @} */ */ 00081 /** * @} */ */ 00082 00083 /** * @} */ */ 00084 /** * @} */ */ 00085 /** * @} */ */ 00086 /** * @} */ */ 00087 00088 /** * @} */ */ 00089 /** * @} */ */ 00090 #ifdef __cplusplus 00091 } 00092 #endif 00093 00094 #endif /* STM32G4xx_HAL_FLASH_EX_H */ 00095
1.7.6.1