CMSIS2000  0.0.7
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
SysTick Functions

Functions that configure the System. More...

Collaboration diagram for SysTick Functions:


__STATIC_INLINE uint32_t SysTick_Config (uint32_t ticks)
 System Tick Configuration.

Detailed Description

Functions that configure the System.

Function Documentation

__STATIC_INLINE uint32_t SysTick_Config ( uint32_t  ticks)

System Tick Configuration.

The function initializes the System Timer and its interrupt, and starts the System Tick Timer. Counter is in free running mode to generate periodic interrupts.

[in]ticksNumber of ticks between two interrupts.
0 Function succeeded.
1 Function failed.
When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function.

Definition at line 641 of file core_cm0.h.

References __NVIC_PRIO_BITS, NVIC_SetPriority(), SysTick, SysTick_CTRL_CLKSOURCE_Msk, SysTick_CTRL_ENABLE_Msk, SysTick_CTRL_TICKINT_Msk, SysTick_IRQn, and SysTick_LOAD_RELOAD_Msk.

Here is the call graph for this function: