C3 support is added in esp32c3 branch.
There was a problem with watchdog, so tight loop break out was added, not sure it was good idea.
Something is wrong with offset calculation still:
[2025-12-21 16:01:49.952389] I (12037) dtr: Offset: [26465357 - 26517335 = -51978] avg 26491346 (662283.650 us), loop: avg=24.691, min=1, max=75
Normally it should be small and positive. Possible reasons: GPTimer we use is used by something else, GPTimer's counter is 64 bits while MCPWM was 16 bits, maybe some type conversion bug.
To be investigated.
C3 support is added in esp32c3 branch.
There was a problem with watchdog, so tight loop break out was added, not sure it was good idea.
Something is wrong with offset calculation still:
Normally it should be small and positive. Possible reasons: GPTimer we use is used by something else, GPTimer's counter is 64 bits while MCPWM was 16 bits, maybe some type conversion bug.
To be investigated.