defragster
Senior Member+
I had trouble compiling my code (in the Arduino environment) when I had placed the definition of getTeensy3Time() in a separate file. After some head scratching, I realized I had to explicitly #include "core_pins.h" for the compiler to recognize the Teensy3Clock object. This was not necessary when I instead put the definition in the .ino file.
So this is the relevant code in the separate cpp file:
...
Maybe this can help someone else solve a similar issue.
Only the .INO gets any default provided inclusions - primarily ARDUINO.h
Adding just that should work and is less obscure.