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
-
Definition at line 186 of file stm32l4xx_ll_utils.c.
188 __IO uint32_t tmp = SysTick->CTRL;
189 uint32_t tmpDelay = Delay;
195 if(tmpDelay < LL_MAX_DELAY)
200 while (tmpDelay != 0U)
202 if((SysTick->CTRL & SysTick_CTRL_COUNTFLAG_Msk) != 0U)