Implement a secure ICS protocol targeting LoRa Node151 microcontroller for controlling irrigation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

120 lines
2.9 KiB

  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. /* Define to prevent recursive inclusion -------------------------------------*/
  20. #ifndef __STM32L1xx_FLASH_RAMFUNC_H
  21. #define __STM32L1xx_FLASH_RAMFUNC_H
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /* Includes ------------------------------------------------------------------*/
  26. #include "stm32l1xx_hal_def.h"
  27. /** @addtogroup STM32L1xx_HAL_Driver
  28. * @{
  29. */
  30. /** @addtogroup FLASH_RAMFUNC
  31. * @{
  32. */
  33. /* Exported types ------------------------------------------------------------*/
  34. /* Exported functions --------------------------------------------------------*/
  35. /** @addtogroup FLASH_RAMFUNC_Exported_Functions
  36. * @{
  37. */
  38. /*
  39. * @brief FLASH memory functions that should be executed from internal SRAM.
  40. * These functions are defined inside the "stm32l1xx_hal_flash_ramfunc.c"
  41. * file.
  42. */
  43. /** @addtogroup FLASH_RAMFUNC_Exported_Functions_Group1
  44. * @{
  45. */
  46. __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_EnableRunPowerDown(void);
  47. __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_DisableRunPowerDown(void);
  48. /**
  49. * @}
  50. */
  51. /** @addtogroup FLASH_RAMFUNC_Exported_Functions_Group2
  52. * @{
  53. */
  54. #if defined(FLASH_PECR_PARALLBANK)
  55. __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_EraseParallelPage(uint32_t Page_Address1, uint32_t Page_Address2);
  56. __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_ProgramParallelHalfPage(uint32_t Address1, uint32_t* pBuffer1, uint32_t Address2, uint32_t* pBuffer2);
  57. #endif /* FLASH_PECR_PARALLBANK */
  58. __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_HalfPageProgram(uint32_t Address, uint32_t* pBuffer);
  59. /**
  60. * @}
  61. */
  62. /** @addtogroup FLASH_RAMFUNC_Exported_Functions_Group3
  63. * @{
  64. */
  65. __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_GetError(uint32_t *Error);
  66. /**
  67. * @}
  68. */
  69. /** @addtogroup FLASH_RAMFUNC_Exported_Functions_Group4
  70. * @{
  71. */
  72. __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_DATAEEPROM_EraseDoubleWord(uint32_t Address);
  73. __RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_DATAEEPROM_ProgramDoubleWord(uint32_t Address, uint64_t Data);
  74. /**
  75. * @}
  76. */
  77. /**
  78. * @}
  79. */
  80. /**
  81. * @}
  82. */
  83. /**
  84. * @}
  85. */
  86. #ifdef __cplusplus
  87. }
  88. #endif
  89. #endif /* __STM32L1xx_FLASH_RAMFUNC_H */
  90. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/