2
2
******************************************************************************
3
3
* @file stm32f4xx_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 __STM32F4xx_HAL_H
51
35
52
36
/** @addtogroup HAL
53
37
* @{
54
- */
38
+ */
55
39
56
40
/* Exported types ------------------------------------------------------------*/
57
41
/* Exported constants --------------------------------------------------------*/
@@ -77,13 +61,13 @@ typedef enum
77
61
/**
78
62
* @}
79
63
*/
80
-
64
+
81
65
/* Exported macro ------------------------------------------------------------*/
82
66
/** @defgroup HAL_Exported_Macros HAL Exported Macros
83
67
* @{
84
68
*/
85
69
86
- /** @brief Freeze/Unfreeze Peripherals in Debug mode
70
+ /** @brief Freeze/Unfreeze Peripherals in Debug mode
87
71
*/
88
72
#define __HAL_DBGMCU_FREEZE_TIM2 () (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM2_STOP))
89
73
#define __HAL_DBGMCU_FREEZE_TIM3 () (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM3_STOP))
@@ -168,7 +152,7 @@ typedef enum
168
152
#define __HAL_SYSCFG_REMAPMEMORY_FMC_SDRAM () do {SYSCFG->MEMRMP &= ~(SYSCFG_MEMRMP_MEM_MODE);\
169
153
SYSCFG->MEMRMP |= (SYSCFG_MEMRMP_MEM_MODE_2);\
170
154
}while(0);
171
- #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */
155
+ #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */
172
156
173
157
#if defined(STM32F410Tx ) || defined(STM32F410Cx ) || defined(STM32F410Rx ) || defined(STM32F413xx ) || defined(STM32F423xx )
174
158
/** @defgroup Cortex_Lockup_Enable Cortex Lockup Enable
@@ -253,12 +237,14 @@ void HAL_DBGMCU_EnableDBGStandbyMode(void);
253
237
void HAL_DBGMCU_DisableDBGStandbyMode (void );
254
238
void HAL_EnableCompensationCell (void );
255
239
void HAL_DisableCompensationCell (void );
256
- void HAL_GetUID (uint32_t * UID );
240
+ uint32_t HAL_GetUIDw0 (void );
241
+ uint32_t HAL_GetUIDw1 (void );
242
+ uint32_t HAL_GetUIDw2 (void );
257
243
#if defined(STM32F427xx ) || defined(STM32F437xx ) || defined(STM32F429xx )|| defined(STM32F439xx ) || \
258
244
defined(STM32F469xx ) || defined(STM32F479xx )
259
245
void HAL_EnableMemorySwappingBank (void );
260
246
void HAL_DisableMemorySwappingBank (void );
261
- #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */
247
+ #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */
262
248
/**
263
249
* @}
264
250
*/
@@ -289,8 +275,8 @@ void HAL_DisableMemorySwappingBank(void);
289
275
290
276
/**
291
277
* @}
292
- */
293
-
278
+ */
279
+
294
280
#ifdef __cplusplus
295
281
}
296
282
#endif
0 commit comments