Need semaphore for data shared between 2 timers?

Hello,

I would like to know if I need to use a semaphore when a data is shared between 2 timers.
The timers are subscribed in the same task and my application is only composed by a unique task.
The timers are both cyclic and the timer value is similar for the two timers.

Thanks.
Marc

Hi,

I’ve used the semaphore in the scenario where I had 2 timers (with different timer values) subscribed in different tasks and manipulating data in the buffer. It works! :slight_smile:

Regards,
Paruthiv

can we call adl_tmrUnSubscribe from handler in the same timer.