1.1.14.13 WDT_CALLBACK Typedef

C

typedef void (*WDT_CALLBACK)(uintptr_t context);

Summary

Defines the data type and function signature for the WDT peripheral callback function.

Description

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

Precondition

None

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 wdt_callback(uintptr_t context)
{
    // Handle WDT timer callback
}

WDT_CallbackRegister(wdt_callback, 0);

Remarks

None