1.1.10.11 RTOS_TMR_CALLBACK Typedef

C

typedef void (*RTOS_TMR_CALLBACK)(uintptr_t context);

Summary

Defines the data type and function signature for the RTOS timer peripheral callback function.

Description

This data type defines the function signature for the RTOS timer peripheral callback function. The RTOS timer peripheral will call back the client's function with this signature when the RTOS timer expires.

Precondition

RTOSTimer_Initialize() function must have been called first.

Parameters

Param Description
context A value (usually a pointer) which is passed (unused) into the function identified by the callback parameter

Returns

None

Example

void rtos_tmr_callback(uintptr_t context)
{
    // Handle RTOS timer callback
}

RTOSTimer_CallbackRegister(rtos_tmr_callback, 0);

Remarks

None