Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
139
11.8.3 Function Documentation
11.8.3.1 void mmdGdcInterruptHandler ( void )
Interrupt Handler Function.
Interrupt service routine for 2D Core interrupts. This function has to be called by ARM if any 2D Core interrupt
occurs. The function takes care that the interrupt status in the 2D Core is reset. The related interrupt status in ARM
must be reset by the calling function.
11.8.3.2 MM_ERROR mmdGdcInterruptRegisterHandler ( MM_U64 irq, void(
∗
)(MM_U64 intrrpt)
pHandler )
Set an application defined interrupt handler function.
This function allows an application to define a callback function for dedicated interrupts at runtime. The function
ensures that the related interrupts are enabled in the 2D Core HW block.
Note:
The callback function must not call any 2D Core driver APIs as direct action because it is part of the ARM interrupt
sequence. The callback function will be called after the driver has handled the interrupt internally.
Parameters
in
irq
"or"ed Bitmask with all interrupts calling pHandler.
in
pHandler
Callback function that will be called if one or more requested interrupts occur. The MM_U64
parameter indicates the related interrupts. If pHandler is zero the callback function will no
longer be called.
Return values
MMD_OK
on success. Otherwise the related error code.