1 /** 2 ****************************************************************************** 3 * @file stm32l0xx_hal_flash_ramfunc.h 4 * @author MCD Application Team 5 * @brief Header file of FLASH RAMFUNC driver. 6 ****************************************************************************** 7 * @attention 8 * 9 * <h2><center>© Copyright (c) 2016 STMicroelectronics. 10 * All rights reserved.</center></h2> 11 * 12 * This software component is licensed by ST under BSD 3-Clause license, 13 * the "License"; You may not use this file except in compliance with the 14 * License. You may obtain a copy of the License at: 15 * opensource.org/licenses/BSD-3-Clause 16 * 17 ****************************************************************************** 18 */ 19 20 /* Define to prevent recursive inclusion -------------------------------------*/ 21 #ifndef __STM32L0xx_FLASH_RAMFUNC_H 22 #define __STM32L0xx_FLASH_RAMFUNC_H 23 24 #ifdef __cplusplus 25 extern "C" { 26 #endif 27 28 /* Includes ------------------------------------------------------------------*/ 29 #include "stm32l0xx_hal_def.h" 30 31 /** @addtogroup STM32L0xx_HAL_Driver 32 * @{ 33 */ 34 35 /** @addtogroup FLASH_RAMFUNC 36 * @{ 37 */ 38 39 /* Exported types ------------------------------------------------------------*/ 40 41 42 /* Exported functions --------------------------------------------------------*/ 43 44 /** @addtogroup FLASH_RAMFUNC_Exported_Functions 45 * @{ 46 */ 47 48 /* 49 * @brief FLASH memory functions that should be executed from internal SRAM. 50 * These functions are defined inside the "stm32l0xx_hal_flash_ramfunc.c" 51 * file. 52 */ 53 54 /** @addtogroup FLASH_RAMFUNC_Exported_Functions_Group1 55 * @{ 56 */ 57 58 __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_EnableRunPowerDown(void); 59 __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_DisableRunPowerDown(void); 60 61 /** 62 * @} 63 */ 64 65 /** @addtogroup FLASH_RAMFUNC_Exported_Functions_Group2 66 * @{ 67 */ 68 69 #if defined(FLASH_PECR_PARALLBANK) 70 71 __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_EraseParallelPage(uint32_t Page_Address1, uint32_t Page_Address2); 72 __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_ProgramParallelHalfPage(uint32_t Address1, uint32_t* pBuffer1, uint32_t Address2, uint32_t* pBuffer2); 73 74 #endif /* FLASH_PECR_PARALLBANK */ 75 76 __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_HalfPageProgram(uint32_t Address, uint32_t* pBuffer); 77 78 /** 79 * @} 80 */ 81 82 /** @addtogroup FLASH_RAMFUNC_Exported_Functions_Group3 83 * @{ 84 */ 85 __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_GetError(uint32_t *Error); 86 /** 87 * @} 88 */ 89 90 /** 91 * @} 92 */ 93 94 /** 95 * @} 96 */ 97 98 /** 99 * @} 100 */ 101 102 #ifdef __cplusplus 103 } 104 #endif 105 106 #endif /* __STM32L0xx_FLASH_RAMFUNC_H */ 107 108 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 109