I'm currently attempting to implement some interrupts on an Arduino project. Looking through some of the examples, it appears that all the ISRs are defined in the top level Arduino program. I'm organizing my project by C++ classes and namespaces, so I'm curious, is it possible to reference an ISR that is not declared and defined in the top level Arduino program? Could I instead reference an ISR that is declared in a separate C++ namespace? This question has been spawned primarily for organizational purposes.
Otherwise, I could always just use a #include to import a file that defines the ISR such that they're imported to the top level.
Thanks!
attachInterrupt()?