Search found 1 match

by Raphelchen
Thu Jul 20, 2023 9:49 am
Forum: ESP-IDF
Topic: GPTimer not enabled yet error, but timer works as intended
Replies: 4
Views: 6148

GPTimer not enabled yet error, but timer works as intended

Hi,
i have two timers for a esp32-s3 on esp-idf 5.0.2
I init the timers with:
gptimer_config_t timer_config = {
.clk_src = GPTIMER_CLK_SRC_DEFAULT,
.direction = GPTIMER_COUNT_UP,
.resolution_hz = 1000000, // 1us
};

//Setup Callback
gptimer_event_callbacks_t cbs = {
.on_alarm = timer ...

Go to advanced search