Search found 3 matches

by kot_schrodingera
Wed Mar 22, 2023 6:03 am
Forum: ESP-IDF
Topic: Using new timer of GPTimer
Replies: 3
Views: 2066

Re: Using new timer of GPTimer

I'm sorry, I'm stupid man.

gptimer_alarm_config_t struct in c++ initialize like

Code: Select all

gptimer_alarm_config_t alarm_config2 = {
        1000000, // period = 1s
        0,
        true,
    };
- it's correct code, and I mix 1000000 and 0.

Thanks
by kot_schrodingera
Wed Mar 22, 2023 5:55 am
Forum: ESP-IDF
Topic: Using new timer of GPTimer
Replies: 3
Views: 2066

Re: Using new timer of GPTimer

No, I found problem.
I'm using c++ and if I rename main.cpp to main.c than all work.
by kot_schrodingera
Tue Mar 21, 2023 2:13 pm
Forum: ESP-IDF
Topic: Using new timer of GPTimer
Replies: 3
Views: 2066

Using new timer of GPTimer

Hello! I migrated from 4.4 to 5.0.1 I'm trying run example for gptimer and getting message: D (332) gptimer: new group (0) @0x3ffb6c64 D (336) gptimer: new gptimer (0,0) at 0x3ffb6bb8, resolution=1000000Hz I (343) system: Enable timer I (346) system: Start timer, stop it at alarm event I (1352) syst...