Using Event grout to handle a Timer interrupt

Hello everyone,

I am new on FreeRTOS and I have some questions.
Actually I am using a Microblaze as a Core. I am using the AXI UART 16550 and an AXI timer. The timer is used to handle the comunication and when there is no comunication on the UART and the timer exceeds the timeout an the interrupt jumps. This two ip are handled on the file DriverT1.cpp and I am trying to use an event group bit in order to notify to the main.cc that the timer has exceeds. I don’t know if it is the most optimal way, however, How can I do it to use the EventGroupHandle_t in both files? There is another way to notify this event better than this method?

Thank you very much for your time and your answer.

Regards,
Sergi

What other events need to be communicated? Just that the timer expired? If so I would suggest a direct to task notification: https://www.freertos.org/RTOS_Task_Notification_As_Counting_Semaphore.html