Timer Groups issue

vgonet
Posts: 20
Joined: Thu Dec 13, 2018 10:01 am

Timer Groups issue

Postby vgonet » Fri May 17, 2019 12:50 pm

Hello

I try to use timer groups in my project and I have strange behaviors (I2C that crashes, program that crashes)...

Currently ISR are registred in my code in this way. Is this the right way to do it or should another interruption priority be used?

Code: Select all

if (timerNum == TIMER_GROUP_0) 
    { 
      timer_isr_register(TIMER_GROUP_0, timerIndex, ISR_TimerGroup0, 
                         (void*) timerIndex, ESP_INTR_FLAG_IRAM, NULL); 
    } 
    else 
    { 
      timer_isr_register(TIMER_GROUP_1, timerIndex, ISR_TimerGroup1, 
                         (void*) timerIndex, ESP_INTR_FLAG_IRAM, NULL); 
    } 


Are timer groups used by the following libraries?
- WIFI
- FreeRTOS
- High Resolution Timers
- MCPWM
- SPI
- I2C
- UART

If so, which ones?

Thank you and best regards,
Vincent

Who is online

Users browsing this forum: Bing [Bot] and 88 guests