1.29.5.4 MCLK_CallbackRegister Function
C
void MCLK_CallbackRegister (MCLK_CKRDY_CALLBACK callback, uintptr_t context)
Summary
Register the function to be called when the MCLK is ready.
Description
This function register the function to be called when the MCLK is ready.
Precondition
The MCLK should have been configured in MHC and enabled.
Parameters
Param | Description |
---|---|
callback | Pointer to the MCLK_CKRDY_CALLBACK type of function that will be called when a clock failure is detected. This can be NULL, in which case no callback will be generated. |
context | Context value to be passed into the callback function when it called. |
Returns
None.
Example
void MyMCLKReadyCallback (uintptr_t context ) { This means the MCLK clock is ready. } Register the callback function. Specify the context as NULL. MCLK_CallbackRegister(MyMCLKReadyCallback, NULL);
Remarks
None.