Calling xTimerStart in timer callback

freertos99 wrote on Wednesday, February 27, 2019:

Hello Experts,
Would like to know your opinion on below scenario.

  1. Create the timer Z via xTimerCreate()
  2. Start the timer Z via xTimerStart()
  3. When timer expires the callback routine is called.
  4. Inside callback routine again start the same timer Z via xTimerStart().

Is step 4) Okay? Or do you see any side effects in this?
Please let me know. Thanks for your time.

rtel wrote on Wednesday, February 27, 2019:

  1. is only ok if you have a block time of 0, otherwise you risk deadlock
    if the timer command queue is full.

freertos99 wrote on Thursday, February 28, 2019:

Thanks for the clarification.

freertos99 wrote on Thursday, February 28, 2019: