1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
52
53
57
58
59
60
61
62
63
64
65
66
67
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
94
95
96
97
98
99
100
101
102
103
104
111
112
113
114
115
116
117
118
119
120
121
128
129
130
131
132
133
134
135
136
137
138
145
146
147
148
149
150
151
152
153
154
155
158
159
162
163
164
165
168
169
172
/* ... */
#include "stm32f4xx_hal.h"
/* ... */
/* ... */
#ifdef HAL_FLASH_MODULE_ENABLED
#if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) || defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || \
defined(STM32F412Rx) || defined(STM32F412Cx)
/* ... */
/* ... */
/* ... */
__RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_StopFlashInterfaceClk(void)
{
__HAL_RCC_PWR_CLK_ENABLE();
SET_BIT(PWR->CR, PWR_CR_FISSR);
return HAL_OK;
}{ ... }
/* ... */
__RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_StartFlashInterfaceClk(void)
{
__HAL_RCC_PWR_CLK_ENABLE();
CLEAR_BIT(PWR->CR, PWR_CR_FISSR);
return HAL_OK;
}{ ... }
/* ... */
__RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_EnableFlashSleepMode(void)
{
__HAL_RCC_PWR_CLK_ENABLE();
SET_BIT(PWR->CR, PWR_CR_FMSSR);
return HAL_OK;
}{ ... }
/* ... */
__RAM_FUNC HAL_StatusTypeDef HAL_FLASHEx_DisableFlashSleepMode(void)
{
__HAL_RCC_PWR_CLK_ENABLE();
CLEAR_BIT(PWR->CR, PWR_CR_FMSSR);
return HAL_OK;
}{ ... }
/* ... */
/* ... */
/* ... */
#endif /* ... */
#endif
/* ... */
/* ... */