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.

cc2650 Periodic event

Hey,

I am working with periodic event and I put it for 1 ms, if I am doing an operation that is taking for example 5 ms!

would the periodic task callback function be aborted after 1 ms (a new periodic event) or would wait for the end of the process?!

is it will wait and finish the periodic task normally, would the next periodic event take place immediately ? if yes, would it make 5 events because 5 ms was passed so it should serve 5 events that were registered or only one event is registered?

Thanks.

  • Hi Feras,

    It will depend on several factors. Are you running the operation in the same context as the task which received the periodic event? Are you running in the critical section where task switching and interrupts are disabled?

    Safe way would be to restart the timer after the processing has finished. See SBP_PERIODIC_EVT in SimpleBLEPeripheral for an example.

    Best wishes