Switching GPIO with high frequency


Who knows how to switch the GPIO state in their application with a high frequency?

I wrote an application following the example of an Ampere, but when I needed to increase the frequency to 5 kHz, I rested on the FreeRTOS feature, which intercepts control.
What to do?

I found a PWM Generator in the sources, but I can’t figure out what’s what. Maybe someone has an article suitable about GPIO Flipper Zero, or can someone tell me which way to dig so that I can control the switching frequency?

Any help. Thank you.

1 Like