This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2640R2F: Additional Event_post does not work?

Part Number: CC2640R2F


Hi,

   I have used Event_post in my application and it works. However the last Event_post that I added did not work. The Event Id is 17

#define SBP_CWQ_TEST_EVT                      Event_Id_17 

   I set a one shot clock timer that will run for ten seconds. Here is my clock initialization below.

   Util_constructClock(&CWTestClock, TestApp__CWTimeout,
                        SBP_CW_EVT_PERIOD, 0, false, SBP_CWQ_TEST_EVT);

   I start the CWTestClock at TestApp__CWTestExe(). 

void TestApp__CWTestExe(void) 
{
    Util_startClock(&CWTestClock);
    UartApp__WriteString("CW Test STARTED.\r\n");
    HCI_EXT_ModemTestTxCmd(HCI_EXT_TX_UNMODULATED_CARRIER, 39);  
}

  Then it will go to clock handler TestApp__CWTimeout(). which I pass the SBP_CWQ_TEST_EVT.

void TestApp__CWTimeout(UArg arg)
{
    Event_post(syncEvent, arg); //added by markel
 
}

  I run the program and it did not go to the event handler at main task.

              if (events & SBP_CWQ_TEST_EVT)
              {
                 Util_stopClock(&CWTestClock);
                 HCI_EXT_EndModemTestCmd();
              }

 What changes do I need to make at my code to make the Event_post to work?

- kel