stm32g4xx_hal_flash_ex.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /**
  2. ******************************************************************************
  3. * @file stm32g4xx_hal_flash_ex.h
  4. * @author MCD Application Team
  5. * @brief Header file of FLASH HAL Extended module.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * Copyright (c) 2019 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 STM32G4xx_HAL_FLASH_EX_H
  19. #define STM32G4xx_HAL_FLASH_EX_H
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. /* Includes ------------------------------------------------------------------*/
  24. #include "stm32g4xx_hal_def.h"
  25. /** @addtogroup STM32G4xx_HAL_Driver
  26. * @{
  27. */
  28. /** @addtogroup FLASHEx
  29. * @{
  30. */
  31. /* Exported types ------------------------------------------------------------*/
  32. /* Exported constants --------------------------------------------------------*/
  33. /* Exported macro ------------------------------------------------------------*/
  34. /* Exported functions --------------------------------------------------------*/
  35. /** @addtogroup FLASHEx_Exported_Functions
  36. * @{
  37. */
  38. /* Extended Program operation functions *************************************/
  39. /** @addtogroup FLASHEx_Exported_Functions_Group1
  40. * @{
  41. */
  42. HAL_StatusTypeDef HAL_FLASHEx_Erase(FLASH_EraseInitTypeDef *pEraseInit, uint32_t *PageError);
  43. HAL_StatusTypeDef HAL_FLASHEx_Erase_IT(FLASH_EraseInitTypeDef *pEraseInit);
  44. HAL_StatusTypeDef HAL_FLASHEx_OBProgram(FLASH_OBProgramInitTypeDef *pOBInit);
  45. void HAL_FLASHEx_OBGetConfig(FLASH_OBProgramInitTypeDef *pOBInit);
  46. HAL_StatusTypeDef HAL_FLASHEx_EnableSecMemProtection(uint32_t Bank);
  47. void HAL_FLASHEx_EnableDebugger(void);
  48. void HAL_FLASHEx_DisableDebugger(void);
  49. /**
  50. * @}
  51. */
  52. /**
  53. * @}
  54. */
  55. /** @addtogroup FLASHEx_Private_Functions
  56. * @{
  57. */
  58. void FLASH_PageErase(uint32_t Page, uint32_t Banks);
  59. void FLASH_FlushCaches(void);
  60. /**
  61. * @}
  62. */
  63. /**
  64. * @}
  65. */
  66. /**
  67. * @}
  68. */
  69. #ifdef __cplusplus
  70. }
  71. #endif
  72. #endif /* STM32G4xx_HAL_FLASH_EX_H */