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.

5s Timer in SimpleBLEPeripheral project

Hi All,

I need to ask you some questions on using timers in SimpleBLEPeripheral project. 
Consider the following scenario. In this project, when the device is in "GAPROLE_WAITING" state the periodic clock of 5s is stopped by calling the following function.
Util_stopClock(&periodicClock); 
1. Does this function temporarily stop the clock from running while the device is in this state? 
2. Does the clock start running automatically without explicitly calling the function "Util_startClock(&periodicClock);"? I am wondering what happens when the device goes back to "GAPROLE_ADVERTISING" state?
Thanks
Shavinda
  • Hi Shavinda,

    To answer your questions:
    1. Yes, this will stop the clock from triggering SWI until it is restarted in software. See p28 of Software Developer's guide
    2. Searching through the code it looks like the clock is restarted when the device is in the GAPROLE_CONNECTED state