1.4.23.13 SYSTICK_CALLBACK Typedef

C

typedef void (*SYSTICK_CALLBACK)(uintptr_t context);

Summary

Defines the data type and function signature for the SysTick callback function.

Description

This data type defines the function signature for the SysTick callback function. SysTick will call back the client's function with this signature.

Precondition

SYSTICK_Initialize and SYSTICK_TimerCallbackSet must have been called to set the function to be called.

Parameters

Param Description
context Allows the caller to provide a context value (usually a pointer to the callers context for multi-instance clients).

Returns

None.

Example

ticks = 0;

void AppCallback ( uintptr_t context )
{
    ticks++;
}

SYSTICK_TimerCallbackSet(AppCallback, (uintptr_t) NULL);

Remarks

None.