I find their description in csl source documents.
CSL_intcPlugEventHandler description as follow:
Associate an event-handler with an event.
CSL_intcPlugEventHandler(..) ties an event-handler to an event; so that the occurence of the event, would result in the event-handler being invoked.
CSL_intcHookIsr description as follow:
Hook up an exception handler.
This API hooks up the handler to the specified exception.
Note: In this case, it is done by inserting a B(ranch) instruction to the handler.
Because of the restriction in the instruction the handler must be within 32MB of the exception vector. Also, the function assumes that the exception vector table is located at its default ("low")address.
- I don't understand what's the difference between CSL_intcPlugEventHandler and CSL_intcHookIsr.
Some CSL examples use CSL_intcPlugEventHandler() such as AIF,EMAC,FSYNC,EDC;
and some others use the other CSL_intcHookIsr() like INTC,Timer,EDMA,CFG.
I think they are both hook ISR fonction to system interrupt event, is that right? - I don't know what's the difference between "event" and "exception".
- I have little knowledge about "exception",could you suggest some documents for me ?
Thank you for your help.
Best regards.