stm32l0xx_hal_flash_ramfunc.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. * Copyright (c) 2016 STMicroelectronics.
  10. * All rights reserved.
  11. *
  12. * This software is licensed under terms that can be found in the LICENSE file in
  13. * the root directory of this software component.
  14. * If no LICENSE file comes with this software, it is provided AS-IS.
  15. ******************************************************************************
  16. */
  17. /* Define to prevent recursive inclusion -------------------------------------*/
  18. #ifndef __STM32L0xx_FLASH_RAMFUNC_H
  19. #define __STM32L0xx_FLASH_RAMFUNC_H
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. /* Includes ------------------------------------------------------------------*/
  24. #include "stm32l0xx_hal_def.h"
  25. /** @addtogroup STM32L0xx_HAL_Driver
  26. * @{
  27. */
  28. /** @addtogroup FLASH_RAMFUNC
  29. * @{
  30. */
  31. /* Exported types ------------------------------------------------------------*/
  32. /* Exported functions --------------------------------------------------------*/
  33. /** @addtogroup FLASH_RAMFUNC_Exported_Functions
  34. * @{
  35. */
  36. /*
  37. * @brief FLASH memory functions that should be executed from internal SRAM.
  38. * These functions are defined inside the "stm32l0xx_hal_flash_ramfunc.c"
  39. * file.
  40. */
  41. /** @addtogroup FLASH_RAMFUNC_Exported_Functions_Group1
  42. * @{
  43. */
  44. __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_EnableRunPowerDown(void);
  45. __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_DisableRunPowerDown(void);
  46. /**
  47. * @}
  48. */
  49. /** @addtogroup FLASH_RAMFUNC_Exported_Functions_Group2
  50. * @{
  51. */
  52. #if defined(FLASH_PECR_PARALLBANK)
  53. __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_EraseParallelPage(uint32_t Page_Address1, uint32_t Page_Address2);
  54. __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_ProgramParallelHalfPage(uint32_t Address1, uint32_t* pBuffer1, uint32_t Address2, uint32_t* pBuffer2);
  55. #endif /* FLASH_PECR_PARALLBANK */
  56. __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_HalfPageProgram(uint32_t Address, uint32_t* pBuffer);
  57. /**
  58. * @}
  59. */
  60. /** @addtogroup FLASH_RAMFUNC_Exported_Functions_Group3
  61. * @{
  62. */
  63. __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_GetError(uint32_t *Error);
  64. /**
  65. * @}
  66. */
  67. /**
  68. * @}
  69. */
  70. /**
  71. * @}
  72. */
  73. /**
  74. * @}
  75. */
  76. #ifdef __cplusplus
  77. }
  78. #endif
  79. #endif /* __STM32L0xx_FLASH_RAMFUNC_H */