add user code to RTOS tick

Hi, we are running out of timers on our STR710. We implemented a software timer functionality, where we can add timers to wake up in defined intervals. When a timer expires it should send a message in a queue. Therefore we need some tick to call the timer control. We intend to add a function to the FreeRTOS preemptive tick. It than decrements all timers an does some xQueueSendFromISR with a ‘TimerXExpired’ signal. I wonder if thats possible without interfering the scheduler. Regards, Joerg

add user code to RTOS tick

You can achieve this using the tick hook vApplicationTickHook() or by using a macro. You just need to ensure the implemented code does not block and executes quickly.