Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

RTOS/CC2650: Problem with Implicitly Posted Events

$
0
0

Part Number:CC2650

Tool/software: TI-RTOS

Hello

I use Implicitly Posted Events 

I post my code under

My problem is that when I perform my writeTask() I have no action on my readTask.

What is strange is that the ISR works well.

To realize this code I was strongly inspired by bios user guide (§ 4.2.1).

Thanks for your help

Mailbox_Handle MailboxHandle_LedColor;
Mailbox_Params MailboxParams_LedColor;
Event_Handle myEvent;

main()

{

myEvent = Event_create(NULL,NULL);
/* Creation Mailbox */
Mailbox_Params_init(&MailboxParams_LedColor);
MailboxParams_LedColor.readerEvent = myEvent;
MailboxParams_LedColor.readerEventId = Event_Id_00;
MailboxHandle_LedColor = Mailbox_create(3,10,&MailboxParams_LedColor,NULL);

}

--------------------------------------------------------------------------

Readtask()

{

events = Event_pend(myEvent,Event_Id_NONE,(Event_Id_00 | Event_Id_01),BIOS_WAIT_FOREVER);

if (events & Event_Id_00)
{
Mailbox_pend(MailboxHandle_LedColor, u8_LedColor,BIOS_NO_WAIT);

}

--------------------------------------------------------------------------

isr()

{

Event_post(myEvent, Event_Id_01);

}

----------------------------------------------------------------------------

writeTask()

{

Mailbox_post(MailboxHandle_LedColor, u8_ColorLed,BIOS_NO_WAIT);

}


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>