Skip to content

Commit 318da54

Browse files
committed
[STM32F1] Cube_hal driver update
1 parent 6f14439 commit 318da54

File tree

91 files changed

+7373
-5512
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+7373
-5512
lines changed

libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F1/Release_Notes_stm32f1xx_hal.html

Lines changed: 434 additions & 3 deletions
Large diffs are not rendered by default.

libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32_hal_legacy.h

Lines changed: 1132 additions & 174 deletions
Large diffs are not rendered by default.

libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal.c

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
******************************************************************************
33
* @file stm32f1xx_hal.c
44
* @author MCD Application Team
5-
* @version V1.0.0
6-
* @date 15-December-2014
5+
* @version V1.0.4
6+
* @date 29-April-2016
77
* @brief HAL module driver.
88
* This is the common part of the HAL initialization
99
*
@@ -23,7 +23,7 @@
2323
******************************************************************************
2424
* @attention
2525
*
26-
* <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
26+
* <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
2727
*
2828
* Redistribution and use in source and binary forms, with or without modification,
2929
* are permitted provided that the following conditions are met:
@@ -72,11 +72,11 @@
7272
*/
7373

7474
/**
75-
* @brief STM32F1xx HAL Driver version number V1.0.0
75+
* @brief STM32F1xx HAL Driver version number
7676
*/
7777
#define __STM32F1xx_HAL_VERSION_MAIN (0x01) /*!< [31:24] main version */
7878
#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 */
8080
#define __STM32F1xx_HAL_VERSION_RC (0x00) /*!< [7:0] release candidate */
8181
#define __STM32F1xx_HAL_VERSION ((__STM32F1xx_HAL_VERSION_MAIN << 24)\
8282
|(__STM32F1xx_HAL_VERSION_SUB1 << 16)\
@@ -103,7 +103,7 @@ static __IO uint32_t uwTick;
103103
*/
104104

105105
/* Private function prototypes -----------------------------------------------*/
106-
/* Private functions ---------------------------------------------------------*/
106+
/* Exported functions ---------------------------------------------------------*/
107107

108108
/** @defgroup HAL_Exported_Functions HAL Exported Functions
109109
* @{
@@ -146,12 +146,12 @@ static __IO uint32_t uwTick;
146146
/**
147147
* @brief This function configures the Flash prefetch,
148148
* 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
150150
* 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.
152152
* Once done, time base tick start incrementing.
153153
* 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.
155155
* @retval HAL status
156156
*/
157157
HAL_StatusTypeDef HAL_Init(void)
@@ -184,7 +184,7 @@ HAL_StatusTypeDef HAL_Init(void)
184184
/**
185185
* @brief This function de-Initializes common part of the HAL and stops the source
186186
* of time base.
187-
* Note: This function is optional.
187+
* @note This function is optional.
188188
* @retval HAL status
189189
*/
190190
HAL_StatusTypeDef HAL_DeInit(void)
@@ -234,9 +234,9 @@ __weak void HAL_MspDeInit(void)
234234
* @brief This function configures the source of the time base.
235235
* The time source is configured to have 1ms time base with a dedicated
236236
* 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
238238
* 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.
240240
* It is used to generate interrupts at regular time intervals.
241241
* Care must be taken if HAL_Delay() is called from a peripheral ISR process,
242242
* The the SysTick interrupt must have higher priority (numerically lower)
@@ -288,9 +288,9 @@ __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
288288
/**
289289
* @brief This function is called to increment a global variable "uwTick"
290290
* 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
292292
* 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
294294
* implementations in user file.
295295
* @retval None
296296
*/
@@ -301,7 +301,7 @@ __weak void HAL_IncTick(void)
301301

302302
/**
303303
* @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
305305
* implementations in user file.
306306
* @retval tick value
307307
*/
@@ -313,10 +313,10 @@ __weak uint32_t HAL_GetTick(void)
313313
/**
314314
* @brief This function provides accurate delay (in milliseconds) based
315315
* 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.
317317
* It is used to generate interrupts at regular time intervals where uwTick
318318
* 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
320320
* implementations in user file.
321321
* @param Delay: specifies the delay time length, in milliseconds.
322322
* @retval None
@@ -332,11 +332,11 @@ __weak void HAL_Delay(__IO uint32_t Delay)
332332

333333
/**
334334
* @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
336336
* used to generate interrupts at regular time intervals. Once HAL_SuspendTick()
337337
* is called, the the SysTick interrupt will be disabled and so Tick increment
338338
* 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
340340
* implementations in user file.
341341
* @retval None
342342
*/
@@ -348,11 +348,11 @@ __weak void HAL_SuspendTick(void)
348348

349349
/**
350350
* @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
352352
* used to generate interrupts at regular time intervals. Once HAL_ResumeTick()
353353
* is called, the the SysTick interrupt will be enabled and so Tick increment
354354
* 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
356356
* implementations in user file.
357357
* @retval None
358358
*/
@@ -363,7 +363,7 @@ __weak void HAL_ResumeTick(void)
363363
}
364364

365365
/**
366-
* @brief Returns the HAL revision
366+
* @brief This method returns the HAL revision
367367
* @retval version: 0xXYZR (8bits for each decimal, R for RC)
368368
*/
369369
uint32_t HAL_GetHalVersion(void)

libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
******************************************************************************
33
* @file stm32f1xx_hal.h
44
* @author MCD Application Team
5-
* @version V1.0.0
6-
* @date 15-December-2014
5+
* @version V1.0.4
6+
* @date 29-April-2016
77
* @brief This file contains all the functions prototypes for the HAL
88
* module driver.
99
******************************************************************************
1010
* @attention
1111
*
12-
* <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
12+
* <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
1313
*
1414
* Redistribution and use in source and binary forms, with or without modification,
1515
* are permitted provided that the following conditions are met:

0 commit comments

Comments
 (0)