1.30.3.2 SYSCTRL_CallbackRegister Function
C
void SYSCTRL_CallbackRegister(SYSCTRL_CALLBACK callback, uintptr_t context);
Summary
Register the function to be called when an SYSCTRL interrupt is generated.
Description
This function registers the callback function to be called when the SYSCTRL interrupts generated.
Precondition
The SYSCTRL/Clock should have been configured in MHC and enabled.
Parameters
Param | Description |
---|---|
callback | Pointer to the SYSCTRL_CALLBACK type of function that will be called when the clock is failed. |
context | Context value to be passed into the callback function when it called. |
Returns
None.
Example
void SysctrlCallback (SYSCTRL_INTERRUPT_MASK interruptMask, uintptr_t context ) { } Register the callback function. Specify the context as NULL. SYSCTRL_CallbackRegister(SysctrlCallback, NULL);
Remarks
None.