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

CCS/CC2640: cc2640 data is not advertising when using the polling method

$
0
0

Part Number:CC2640

Tool/software: Code Composer Studio

Hi all,

Data is not advertising when using the polling method. here i am mentioning the algorithm what i am using now.

// Initializing the pin to the posedge at power on

Board_BUTTON1 | PIN_INPUT_EN | PIN_PULLUP |PIN_IRQ_POSEDGE | PINCC26XX_WAKEUP_NEGEDGE,

when posedge detects on the pin it is entering into the interrupt handler.


interrupt handler
{

       int buttons = 0;

       Clearing the interrupt;  (PIN_clrPendInterrupt)

      while (buttons = PIN_getInputValue(PIN_ID(Board_BUTTON1))       /* the pin is in high state */
      {
            once started the 180sec timer
            if(180sec clock completed)
            {
                 stop 180sec clock;
                SensorTag_createTask();            // Data advertising task
            }
      }
}

Issue is after 180sec clock completed data is not advertising. but after 180sec clock completed When Low level detects on the pin then immediately advertising the data.

Can any one help me..

Thanks in advance.


Viewing all articles
Browse latest Browse all 262198

Trending Articles



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