CMSIS-Core (Cortex-M)
Version 5.7.0
CMSIS-Core support for Cortex-M processor-based devices
|
Initialize and start the SysTick timer. More...
Functions | |
uint32_t | SysTick_Config (uint32_t ticks) |
System Tick Timer Configuration. More... | |
Initialize and start the SysTick timer.
The System Tick Time (SysTick) generates interrupt requests on a regular basis. This allows an OS to carry out context switching to support multiple tasking. For applications that do not require an OS, the SysTick can be used for time keeping, time measurement, or as an interrupt source for tasks that need to be executed regularly.
The code below shows the usage of the function SysTick_Config() with an LPC1700.
uint32_t SysTick_Config | ( | uint32_t | ticks | ) |
System Tick Timer Configuration.
Initialises and starts the System Tick Timer and its interrupt. After this call, the SysTick timer creates interrupts with the specified time interval. Counter is in free running mode to generate periodical interrupts.
[in] | ticks | Number of ticks between two interrupts |