Subversion Repositories EngineBay2

Rev

Rev 2 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. /**
  2.   ******************************************************************************
  3.   * @file    stm32l1xx_hal_flash_ramfunc.h
  4.   * @author  MCD Application Team
  5.   * @brief   Header file of FLASH RAMFUNC driver.
  6.   ******************************************************************************
  7.   * @attention
  8.   *
  9.   * <h2><center>&copy; Copyright (c) 2017 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 __STM32L1xx_FLASH_RAMFUNC_H
  22. #define __STM32L1xx_FLASH_RAMFUNC_H
  23.  
  24. #ifdef __cplusplus
  25.  extern "C" {
  26. #endif
  27.  
  28. /* Includes ------------------------------------------------------------------*/
  29. #include "stm32l1xx_hal_def.h"
  30.  
  31. /** @addtogroup STM32L1xx_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 "stm32l1xx_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. /** @addtogroup FLASH_RAMFUNC_Exported_Functions_Group4
  91.   * @{
  92.   */
  93.  
  94. __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_DATAEEPROM_EraseDoubleWord(uint32_t Address);
  95. __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_DATAEEPROM_ProgramDoubleWord(uint32_t Address, uint64_t Data);
  96.  
  97. /**
  98.   * @}
  99.   */
  100.  
  101. /**
  102.   * @}
  103.   */
  104.  
  105. /**
  106.   * @}
  107.   */
  108.  
  109. /**
  110.   * @}
  111.   */
  112.  
  113. #ifdef __cplusplus
  114. }
  115. #endif
  116.  
  117. #endif /* __STM32L1xx_FLASH_RAMFUNC_H */
  118.  
  119. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
  120.