I want to measure the frequency of the pwm signal I will be receiving at a certain I/O pin. The issue is, I could not find any library or code written for this board. I could find this library for arduino known as FreqMeasure Library:
https://www.pjrc.com/teensy/td_libs_FreqMeasure.html
The microcontroller used on this board is ATSAMD21 Cortex M0. Which means the register and the whole working is quite different from the arduino Atmegas.
Will I have to program from the ground up changing the register names in the original freqmeasure.h library to the ones for ATSAMD21 Cortex M0?
Or can please someone suggest any other way of doing this without having to understand this microcontroller at ground level. I am using Arduino IDE for programming the adafruit feather.