Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
HAL Control functions
[HAL Exported Functions]
HAL Control functions. More...
Functions | |
__weak void | HAL_IncTick (void) |
This function is called to increment a global variable "uwTick" used as application time base. | |
__weak uint32_t | HAL_GetTick (void) |
Provide a tick value in millisecond. | |
__weak void | HAL_Delay (uint32_t Delay) |
Provide accurate delay (in milliseconds) based on variable incremented. | |
__weak void | HAL_SuspendTick (void) |
Suspend Tick increment. | |
__weak void | HAL_ResumeTick (void) |
Resume Tick increment. | |
uint32_t | HAL_GetHalVersion (void) |
Return the HAL revision. | |
uint32_t | HAL_GetREVID (void) |
Return the device revision identifier. | |
uint32_t | HAL_GetDEVID (void) |
Return the device identifier. |
Detailed Description
HAL Control functions.
=============================================================================== ##### HAL Control functions ##### =============================================================================== [..] This section provides functions allowing to: (+) Provide a tick value in millisecond (+) Provide a blocking delay in millisecond (+) Suspend the time base source interrupt (+) Resume the time base source interrupt (+) Get the HAL API driver version (+) Get the device identifier (+) Get the device revision identifier
Function Documentation
__weak void HAL_Delay | ( | uint32_t | Delay ) |
Provide accurate delay (in milliseconds) based on variable incremented.
- Note:
- In the default implementation , SysTick timer is the source of time base. It is used to generate interrupts at regular time intervals where uwTick is incremented.
- This function is declared as __weak to be overwritten in case of other implementations in user file.
- Parameters:
-
Delay,: specifies the delay time length, in milliseconds.
- Return values:
-
None
Definition at line 330 of file stm32l4xx_hal.c.
uint32_t HAL_GetDEVID | ( | void | ) |
Return the device identifier.
- Return values:
-
Device identifier
Definition at line 393 of file stm32l4xx_hal.c.
uint32_t HAL_GetHalVersion | ( | void | ) |
Return the HAL revision.
- Return values:
-
version : 0xXYZR (8bits for each decimal, R for RC)
Definition at line 375 of file stm32l4xx_hal.c.
uint32_t HAL_GetREVID | ( | void | ) |
Return the device revision identifier.
- Return values:
-
Device revision identifier
Definition at line 384 of file stm32l4xx_hal.c.
__weak uint32_t HAL_GetTick | ( | void | ) |
Provide a tick value in millisecond.
- Note:
- This function is declared as __weak to be overwritten in case of other implementations in user file.
- Return values:
-
tick value
Definition at line 315 of file stm32l4xx_hal.c.
__weak void HAL_IncTick | ( | void | ) |
This function is called to increment a global variable "uwTick" used as application time base.
- Note:
- In the default implementation, this variable is incremented each 1ms in SysTick ISR.
- This function is declared as __weak to be overwritten in case of other implementations in user file.
- Return values:
-
None
Definition at line 304 of file stm32l4xx_hal.c.
__weak void HAL_ResumeTick | ( | void | ) |
Resume Tick increment.
- Note:
- In the default implementation , SysTick timer is the source of time base. It is used to generate interrupts at regular time intervals. Once HAL_ResumeTick() is called, the SysTick interrupt will be enabled and so Tick increment is resumed.
- This function is declared as __weak to be overwritten in case of other implementations in user file.
- Return values:
-
None
Definition at line 365 of file stm32l4xx_hal.c.
__weak void HAL_SuspendTick | ( | void | ) |
Suspend Tick increment.
- Note:
- In the default implementation , SysTick timer is the source of time base. It is used to generate interrupts at regular time intervals. Once HAL_SuspendTick() is called, the SysTick interrupt will be disabled and so Tick increment is suspended.
- This function is declared as __weak to be overwritten in case of other implementations in user file.
- Return values:
-
None
Definition at line 349 of file stm32l4xx_hal.c.
Generated on Tue Jul 12 2022 11:00:03 by
