ESP_TIMER_ISR on the ESP32-C3

bstolk
Posts: 23
Joined: Fri Jan 07, 2022 6:44 am

ESP_TIMER_ISR on the ESP32-C3

Postby bstolk » Sat Jun 01, 2024 10:10 pm

I have used both the ESP32-S3 and the ESP32-C3 (M5Stack Stamp devices.)

On the EPS32-S3 I was able to create an interrupt-service-routine with this configuration:

Code: Select all

        
        const esp_timer_create_args_t periodic_scan_timer_args =
        {
                .callback = &led_driver_scan_isr,
                .dispatch_method = ESP_TIMER_ISR,
                .arg = 0,
                .name = "ISR",
                .skip_unhandled_events = 1,
        };
However, this does not compile for the ESP32-C3 target. Even though I have the high precision timer enabled in menuconfig.

For the ESP32-C3, I am forced to use ESP_TIMER_TASK instead, and trying that gave me unsatisfactory results.

So, are the timers on C3 and S3 fundamentally different? How can I make an interrupt-service-routine for the S3 that does not go via the task system?

bstolk
Posts: 23
Joined: Fri Jan 07, 2022 6:44 am

Re: ESP_TIMER_ISR on the ESP32-C3

Postby bstolk » Sat Jun 01, 2024 10:21 pm

Ah, it turns out I forgot to check a box in the menuconfig
menuconfig.png
menuconfig.png (30.79 KiB) Viewed 530 times

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 251 guests