Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

send event notification using IPC on OMAP-L138

$
0
0

Hi everyone,

I am using IPClite from startware_01_10_04_01 on my omap-l138.  Can I send two event notification from DSP to RAM when interrupt model is used. do I need to wait for the interrupt to ARM trigered by first send event notify function be cleared before I send second one?

Following is my code:

void main(void)
{
int intCnt = 0;
/* Initialization */
evtRcvd = 0;
AppInit();
printf ("DSP IPC ready\n");

/* Send an event */
myPayload1 = 0x1;

myPayload2 = 0x2;
iAssert (Notify_sendEvent(IPC_ARM_HOST,IPC_HOST_INTLINE, EVENTID1, myPayload1, FALSE));

iAssert (Notify_sendEvent(IPC_ARM_HOST,IPC_HOST_INTLINE, EVENTID2, myPayload2, FALSE));


intCnt++;
/* Wait for event from DSP */
while (intCnt < IPC_LOOP_COUNT)
{
wait_event();
intCnt++;
iAssert (Notify_sendEvent(IPC_ARM_HOST,IPC_HOST_INTLINE, EVENTID, myPayload << 1, FALSE));
}

/* Done - exit app */
printf("dsp: done - total event received %d\n", intCnt);
WAIT_HERE;
}

thanks in advance!

Ron


Viewing all articles
Browse latest Browse all 17527

Trending Articles