hello,
I've created several mailboxes statically :
var Mailbox = xdc.useModule('ti.sysbios.knl.Mailbox');
Program.global.mbox1 = Mailbox.create(8, 8);
Program.global.mbox2 = Mailbox.create(8, 8);
Program.global.mbox3 = Mailbox.create(8, 8);
Program.global.mbox4 = Mailbox.create(8, 8);
Then I want to send to task number 3 a mailbox with some data from a Swi thread:
Mailbox_post (mbox3 , (Void*)&Mail, BIOS_WAIT_FOREVER);
and inside the task I'll pend on a mail until it becomes available:
Mailbox_pend (mbox3 , Mail, BIOS_WAIT_FOREVER);
The task start execution and should wait on the Mailbox_pend () function until Swi posts Mailbox for the first time,
but the Mailbox_pend () function returns before Mailbox_post () function is called.
What am I doing wrong here ?
Kind Regards, Wiz.