2
2
******************************************************************************
3
3
* @file stm32f1xx_hal.c
4
4
* @author MCD Application Team
5
- * @version V1.0.0
6
- * @date 15-December-2014
5
+ * @version V1.0.4
6
+ * @date 29-April-2016
7
7
* @brief HAL module driver.
8
8
* This is the common part of the HAL initialization
9
9
*
23
23
******************************************************************************
24
24
* @attention
25
25
*
26
- * <h2><center>© COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
26
+ * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
27
27
*
28
28
* Redistribution and use in source and binary forms, with or without modification,
29
29
* are permitted provided that the following conditions are met:
72
72
*/
73
73
74
74
/**
75
- * @brief STM32F1xx HAL Driver version number V1.0.0
75
+ * @brief STM32F1xx HAL Driver version number
76
76
*/
77
77
#define __STM32F1xx_HAL_VERSION_MAIN (0x01) /*!< [31:24] main version */
78
78
#define __STM32F1xx_HAL_VERSION_SUB1 (0x00) /*!< [23:16] sub1 version */
79
- #define __STM32F1xx_HAL_VERSION_SUB2 (0x00 ) /*!< [15:8] sub2 version */
79
+ #define __STM32F1xx_HAL_VERSION_SUB2 (0x04 ) /*!< [15:8] sub2 version */
80
80
#define __STM32F1xx_HAL_VERSION_RC (0x00) /*!< [7:0] release candidate */
81
81
#define __STM32F1xx_HAL_VERSION ((__STM32F1xx_HAL_VERSION_MAIN << 24)\
82
82
|(__STM32F1xx_HAL_VERSION_SUB1 << 16)\
@@ -103,7 +103,7 @@ static __IO uint32_t uwTick;
103
103
*/
104
104
105
105
/* Private function prototypes -----------------------------------------------*/
106
- /* Private functions ---------------------------------------------------------*/
106
+ /* Exported functions ---------------------------------------------------------*/
107
107
108
108
/** @defgroup HAL_Exported_Functions HAL Exported Functions
109
109
* @{
@@ -146,12 +146,12 @@ static __IO uint32_t uwTick;
146
146
/**
147
147
* @brief This function configures the Flash prefetch,
148
148
* Configures time base source, NVIC and Low level hardware
149
- * Note: This function is called at the beginning of program after reset and before
149
+ * @note This function is called at the beginning of program after reset and before
150
150
* the clock configuration
151
- * Note: The time base configuration is based on MSI clock when exiting from Reset.
151
+ * @note The time base configuration is based on MSI clock when exiting from Reset.
152
152
* Once done, time base tick start incrementing.
153
153
* In the default implementation,Systick is used as source of time base.
154
- * the tick variable is incremented each 1ms in its ISR.
154
+ * The tick variable is incremented each 1ms in its ISR.
155
155
* @retval HAL status
156
156
*/
157
157
HAL_StatusTypeDef HAL_Init (void )
@@ -184,7 +184,7 @@ HAL_StatusTypeDef HAL_Init(void)
184
184
/**
185
185
* @brief This function de-Initializes common part of the HAL and stops the source
186
186
* of time base.
187
- * Note: This function is optional.
187
+ * @note This function is optional.
188
188
* @retval HAL status
189
189
*/
190
190
HAL_StatusTypeDef HAL_DeInit (void )
@@ -234,9 +234,9 @@ __weak void HAL_MspDeInit(void)
234
234
* @brief This function configures the source of the time base.
235
235
* The time source is configured to have 1ms time base with a dedicated
236
236
* Tick interrupt priority.
237
- * Note: This function is called automatically at the beginning of program after
237
+ * @note This function is called automatically at the beginning of program after
238
238
* reset by HAL_Init() or at any time when clock is reconfigured by HAL_RCC_ClockConfig().
239
- * Note: In the default implementation, SysTick timer is the source of time base.
239
+ * @note In the default implementation, SysTick timer is the source of time base.
240
240
* It is used to generate interrupts at regular time intervals.
241
241
* Care must be taken if HAL_Delay() is called from a peripheral ISR process,
242
242
* The the SysTick interrupt must have higher priority (numerically lower)
@@ -288,9 +288,9 @@ __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
288
288
/**
289
289
* @brief This function is called to increment a global variable "uwTick"
290
290
* used as application time base.
291
- * Note: In the default implementation, this variable is incremented each 1ms
291
+ * @note In the default implementation, this variable is incremented each 1ms
292
292
* in Systick ISR.
293
- * Note: This function is declared as __weak to be overwritten in case of other
293
+ * @note This function is declared as __weak to be overwritten in case of other
294
294
* implementations in user file.
295
295
* @retval None
296
296
*/
@@ -301,7 +301,7 @@ __weak void HAL_IncTick(void)
301
301
302
302
/**
303
303
* @brief Provides a tick value in millisecond.
304
- * Note: This function is declared as __weak to be overwritten in case of other
304
+ * @note This function is declared as __weak to be overwritten in case of other
305
305
* implementations in user file.
306
306
* @retval tick value
307
307
*/
@@ -313,10 +313,10 @@ __weak uint32_t HAL_GetTick(void)
313
313
/**
314
314
* @brief This function provides accurate delay (in milliseconds) based
315
315
* on variable incremented.
316
- * Note: In the default implementation , SysTick timer is the source of time base.
316
+ * @note In the default implementation , SysTick timer is the source of time base.
317
317
* It is used to generate interrupts at regular time intervals where uwTick
318
318
* is incremented.
319
- * Note: ThiS function is declared as __weak to be overwritten in case of other
319
+ * @note ThiS function is declared as __weak to be overwritten in case of other
320
320
* implementations in user file.
321
321
* @param Delay: specifies the delay time length, in milliseconds.
322
322
* @retval None
@@ -332,11 +332,11 @@ __weak void HAL_Delay(__IO uint32_t Delay)
332
332
333
333
/**
334
334
* @brief Suspend Tick increment.
335
- * Note: In the default implementation , SysTick timer is the source of time base. It is
335
+ * @note In the default implementation , SysTick timer is the source of time base. It is
336
336
* used to generate interrupts at regular time intervals. Once HAL_SuspendTick()
337
337
* is called, the the SysTick interrupt will be disabled and so Tick increment
338
338
* is suspended.
339
- * Note: This function is declared as __weak to be overwritten in case of other
339
+ * @note This function is declared as __weak to be overwritten in case of other
340
340
* implementations in user file.
341
341
* @retval None
342
342
*/
@@ -348,11 +348,11 @@ __weak void HAL_SuspendTick(void)
348
348
349
349
/**
350
350
* @brief Resume Tick increment.
351
- * Note: In the default implementation , SysTick timer is the source of time base. It is
351
+ * @note In the default implementation , SysTick timer is the source of time base. It is
352
352
* used to generate interrupts at regular time intervals. Once HAL_ResumeTick()
353
353
* is called, the the SysTick interrupt will be enabled and so Tick increment
354
354
* is resumed.
355
- * Note: This function is declared as __weak to be overwritten in case of other
355
+ * @note This function is declared as __weak to be overwritten in case of other
356
356
* implementations in user file.
357
357
* @retval None
358
358
*/
@@ -363,7 +363,7 @@ __weak void HAL_ResumeTick(void)
363
363
}
364
364
365
365
/**
366
- * @brief Returns the HAL revision
366
+ * @brief This method returns the HAL revision
367
367
* @retval version: 0xXYZR (8bits for each decimal, R for RC)
368
368
*/
369
369
uint32_t HAL_GetHalVersion (void )
0 commit comments