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