Hello,
I found this example:
https://github.com/manitou48/teensy4/blob/master/gpt_count.ino
https://github.com/manitou48/teensy4/blob/master/gpt2_count.ino
It counts external pulses from the pin 14. Since I don't have a teensy 4.1 board, I have a question. Up to which frequency can the pin...