hello everybody,
i am trying to learn IPC communication, when i try to run the example of notify single image for evm6472, I am a little confused. When i registered an event with a callback function by using the Notify_registerEvent(), how could i pass some parameters to the callbackFunction? Bellow is the basic code of the notify example:
......
Void cbFxn(UInt16 procId, UInt16 lineId, UInt32 eventId, UArg arg, UInt32 payload)
{
/* The payload is a sequence number. */
recvProcId = procId;
seq = payload;
Semaphore_post(semHandle);
}
......
main()
{
......
status = Notify_registerEvent(srcProc, INTERRUPT_LINE, EVENTID, (Notify_FnNotifyCbck)cbFxn, NULL);
......
}
regardes