HAL + 0/204 examples
CodeScope will show references to HAL_InitTick() from the following samples and libraries:
Examples
STM32446E_EVAL
Demonstrations
Applications
FatFs
FreeRTOS
USB_Host
Examples
HAL
STM32469I-Discovery
Demonstrations
Applications
FileX
FX_IAP
FreeRTOS
ThreadX
USBX
USB_Host
Examples
HAL
STM32469I_EVAL
Demonstrations
Applications
FatFs
FreeRTOS
LwIP
mbedTLS
USB_Host
Examples
HAL
STM324x9I_EVAL
Demonstrations
STemWin
Applications
FatFs
FreeRTOS
LwIP
mbedTLS
USB_Host
Examples
HAL
STM324xG_EVAL
Demonstrations
Applications
FatFs
FreeRTOS
LwIP
mbedTLS
USB_Host
Examples
HAL
STM32F412G-Discovery
Demonstrations
Applications
FatFs
FreeRTOS
Examples
HAL
STM32F413H-Discovery
Demonstrations
Applications
FatFs
FreeRTOS
Examples
HAL
STM32F429I-Discovery
Demonstrations
Applications
FreeRTOS
Examples
HAL
STM32446E-Nucleo
Examples
HAL
STM32F4-Discovery
Examples
HAL
STM32F401-Discovery
Examples
HAL
STM32F401RE-Nucleo
Examples
HAL
STM32F410xx-Nucleo
Examples
HAL
STM32F411E-Discovery
Examples
HAL
STM32F411RE-Nucleo
Examples
HAL
STM32F412ZG-Nucleo
Applications
USB_Host
Examples
HAL
STM32F413ZH-Nucleo
Applications
FreeRTOS
Examples
HAL
STM32F429ZI-Nucleo
Applications
LwIP
NetXDuo
ThreadX
USBX
Examples
HAL
STM32F446ZE-Nucleo
Examples
HAL
 
Symbols
loading...
Files
loading...

HAL_InitTick() function

This function configures the source of the time base. The time source is configured to have 1ms time base with a dedicated Tick interrupt priority.

Syntax

HAL_StatusTypeDef HAL_InitTick (uint32_t TickPriority);
Implemented in stm32f4xx_hal.c:253

Arguments

TickPriority

Tick interrupt priority.

Return value

HAL status

Notes

This function is called automatically at the beginning of program after reset by HAL_Init() or at any time when clock is reconfigured by HAL_RCC_ClockConfig(). In the default implementation, SysTick timer is the source of time base. It is used to generate interrupts at regular time intervals. Care must be taken if HAL_Delay() is called from a peripheral ISR process, The SysTick interrupt must have higher priority (numerically lower) than the peripheral interrupt. Otherwise the caller ISR process will be blocked. The function is declared as __weak to be overwritten in case of other implementation in user file.

Examples

HAL_InitTick() is referenced by 204 libraries and example projects.

Call Tree

Data read by HAL_InitTick()
Data written by HAL_InitTick()
IRQn_Type::RTC_Alarm_IRQn
hRTC_Handle
HAL_InitTick()::counter
HAL_InitTick()::RCC_OscInitStruct
HAL_InitTick()::PeriphClkInitStruct
IRQn_Type::RTC_WKUP_IRQn
IRQn_Type::TIM6_DAC_IRQn
TimHandle
HAL_InitTick()::clkconfig
HAL_InitTick()::uwTimclock
HAL_InitTick()::uwAPB1Prescaler
HAL_InitTick()::uwPrescalerValue
HAL_InitTick()::tmpreg
htim6
HAL_InitTick()::status
IRQn_Type::TIM5_IRQn
HAL_InitTick()::sClokConfig
IRQn_Type::TIM6_IRQn
all items filtered out
HAL_InitTick()
Type of HAL_InitTick()
HAL_InitTick()