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.
Fork of TUKS-COURSE-TIMER by
DELAY
[UTILS Exported Functions]
Functions | |
| void | LL_Init1msTick (uint32_t HCLKFrequency) |
| This function configures the Cortex-M SysTick source to have 1ms time base. | |
| void | LL_mDelay (uint32_t Delay) |
| This function provides accurate delay (in milliseconds) based on SysTick counter flag. | |
| __STATIC_INLINE void | LL_InitTick (uint32_t HCLKFrequency, uint32_t Ticks) |
| This function configures the Cortex-M SysTick source of the time base. | |
Function Documentation
| void LL_Init1msTick | ( | uint32_t | HCLKFrequency ) |
This function configures the Cortex-M SysTick source to have 1ms time base.
- Note:
- When a RTOS is used, it is recommended to avoid changing the Systick configuration by calling this function, for a delay use rather osDelay RTOS service.
- Parameters:
-
HCLKFrequency HCLK frequency in Hz
- Note:
- HCLK frequency can be calculated thanks to RCC helper macro or function LL_RCC_GetSystemClocksFreq
- Return values:
-
None
Definition at line 168 of file stm32l4xx_ll_utils.c.
| __STATIC_INLINE void LL_InitTick | ( | uint32_t | HCLKFrequency, |
| uint32_t | Ticks | ||
| ) |
This function configures the Cortex-M SysTick source of the time base.
- Parameters:
-
HCLKFrequency HCLK frequency in Hz (can be calculated thanks to RCC helper macro)
- Note:
- When a RTOS is used, it is recommended to avoid changing the SysTick configuration by calling this function, for a delay use rather osDelay RTOS service.
- Parameters:
-
Ticks Number of ticks
- Return values:
-
None
Definition at line 285 of file stm32l4xx_ll_utils.h.
| void LL_mDelay | ( | uint32_t | Delay ) |
This function provides accurate delay (in milliseconds) based on SysTick counter flag.
- Note:
- When a RTOS is used, it is recommended to avoid using blocking delay and use rather osDelay service.
- To respect 1ms timebase, user should call LL_Init1msTick function which will configure Systick to 1ms
- Parameters:
-
Delay specifies the delay time length, in milliseconds.
- Return values:
-
None
Definition at line 184 of file stm32l4xx_ll_utils.c.
Generated on Tue Jul 12 2022 17:38:59 by
1.7.2
