2
2
******************************************************************************
3
3
* @file stm32f7xx_hal.h
4
4
* @author MCD Application Team
5
- * @brief This file contains all the functions prototypes for the HAL
5
+ * @brief This file contains all the functions prototypes for the HAL
6
6
* module driver.
7
7
******************************************************************************
8
8
* @attention
9
9
*
10
- * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
10
+ * <h2><center>© Copyright (c) 2017 STMicroelectronics.
11
+ * All rights reserved.</center></h2>
11
12
*
12
- * Redistribution and use in source and binary forms, with or without modification,
13
- * are permitted provided that the following conditions are met:
14
- * 1. Redistributions of source code must retain the above copyright notice,
15
- * this list of conditions and the following disclaimer.
16
- * 2. Redistributions in binary form must reproduce the above copyright notice,
17
- * this list of conditions and the following disclaimer in the documentation
18
- * and/or other materials provided with the distribution.
19
- * 3. Neither the name of STMicroelectronics nor the names of its contributors
20
- * may be used to endorse or promote products derived from this software
21
- * without specific prior written permission.
22
- *
23
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
27
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
29
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
30
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
31
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
13
+ * This software component is licensed by ST under BSD 3-Clause license,
14
+ * the "License"; You may not use this file except in compliance with the
15
+ * License. You may obtain a copy of the License at:
16
+ * opensource.org/licenses/BSD-3-Clause
33
17
*
34
18
******************************************************************************
35
- */
19
+ */
36
20
37
21
/* Define to prevent recursive inclusion -------------------------------------*/
38
22
#ifndef __STM32F7xx_HAL_H
51
35
52
36
/** @addtogroup HAL
53
37
* @{
54
- */
38
+ */
55
39
56
40
/* Exported types ------------------------------------------------------------*/
57
41
/* Exported constants --------------------------------------------------------*/
@@ -86,13 +70,13 @@ typedef enum
86
70
/**
87
71
* @}
88
72
*/
89
-
73
+
90
74
/* Exported macro ------------------------------------------------------------*/
91
75
/** @defgroup HAL_Exported_Macros HAL Exported Macros
92
76
* @{
93
77
*/
94
-
95
- /** @brief Freeze/Unfreeze Peripherals in Debug mode
78
+
79
+ /** @brief Freeze/Unfreeze Peripherals in Debug mode
96
80
*/
97
81
#define __HAL_DBGMCU_FREEZE_TIM2 () (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM2_STOP))
98
82
#define __HAL_DBGMCU_FREEZE_TIM3 () (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM3_STOP))
@@ -148,7 +132,7 @@ typedef enum
148
132
/** @brief FMC (NOR/RAM) mapped at 0x60000000 and SDRAM mapped at 0xC0000000
149
133
*/
150
134
#define __HAL_SYSCFG_REMAPMEMORY_FMC () (SYSCFG->MEMRMP &= ~(SYSCFG_MEMRMP_SWP_FMC))
151
-
135
+
152
136
153
137
/** @brief FMC/SDRAM mapped at 0x60000000 (NOR/RAM) mapped at 0xC0000000
154
138
*/
@@ -181,7 +165,7 @@ typedef enum
181
165
/**
182
166
* @}
183
167
*/
184
-
168
+
185
169
/** @defgroup HAL_Private_Macros HAL Private Macros
186
170
* @{
187
171
*/
@@ -207,10 +191,21 @@ HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority);
207
191
/**
208
192
* @}
209
193
*/
210
-
194
+
195
+ /* Exported variables ---------------------------------------------------------*/
196
+ /** @addtogroup HAL_Exported_Variables
197
+ * @{
198
+ */
199
+ extern __IO uint32_t uwTick ;
200
+ extern uint32_t uwTickPrio ;
201
+ extern HAL_TickFreqTypeDef uwTickFreq ;
202
+ /**
203
+ * @}
204
+ */
205
+
211
206
/** @addtogroup HAL_Exported_Functions_Group2
212
207
* @{
213
- */
208
+ */
214
209
/* Peripheral Control functions ************************************************/
215
210
void HAL_IncTick (void );
216
211
void HAL_Delay (uint32_t Delay );
@@ -246,7 +241,7 @@ void HAL_DisableMemorySwappingBank(void);
246
241
247
242
/**
248
243
* @}
249
- */
244
+ */
250
245
/* Private types -------------------------------------------------------------*/
251
246
/* Private variables ---------------------------------------------------------*/
252
247
/** @defgroup HAL_Private_Variables HAL Private Variables
@@ -266,12 +261,12 @@ void HAL_DisableMemorySwappingBank(void);
266
261
/* Private functions ---------------------------------------------------------*/
267
262
/**
268
263
* @}
269
- */
264
+ */
270
265
271
266
/**
272
267
* @}
273
- */
274
-
268
+ */
269
+
275
270
#ifdef __cplusplus
276
271
}
277
272
#endif
0 commit comments