I am trying to figure out how to program and use the timers in the Feather M0 using the Arduino IDE. I have seen a number of examples published, but I'm not one to just blindly copy some code and expect it to work. The issue that I'm having (and it seems to be ubiquitous in Arduino) is that there does not seem to be a concept of dependencies. In order to reference constants, they have to be defined somewhere.
How can I find the source of the definition of the constants that people keep referring to in their code? For example, in this code a Arduino Zero, M0 timer example, reference is made to
TC_CTRLA_PRESCALER_DIV1 among other constants. Where is this constant defined?
I've searched generally and specifically for these constants. But, as you would imagine in C, it's difficult to find the actual source versus a simple reference to the constant.
I've also tried a search in the installed Arduino IDE with SAMD and Adafruit SAMD libraries installed. For example
~/Arduino$ grep -r --include=*.h --include=*.cpp "TC.*_PRESCALER_DIV"
Did not yield anything. I apologize if this is a naive question, but I haven't been able to find a simple, obvious answer. Actually, I haven't been able to find any answer.