2.15.13 CLOCK_MonitorFailCallbackRegister Function
C
void CLOCK_MonitorFailCallbackRegister(CLOCK_MonitorFailCallback callback, uintptr_t context);
Summary
Override default callback and to define custom callback for CLOCK Monitor fail event.
Description
This function can be used to override default callback CLOCK_MonitorFailCallback and to define custom callback for CLOCK Monitor fail event.
Precondition
None.
Parameters
| Param | Description |
|---|---|
| monitor | Instance of the clock monitor |
| callback | Address of the callback routine |
| context | A value (usually a pointer) passed (unused) into the function identified by the callback parameter |
Returns
None.
Example
void MonitorFailCallback(uintptr_t context) { //action during the event } int main ( void ) { SYS_Initialize ( NULL ); CLOCK_MonitorFailCallbackRegister(CLOCK_MONITOR_1, MonitorFailCallback, NULL); while ( true ) { SYS_Tasks ( ); } return ( EXIT_FAILURE ); }
Remarks
None.
