I try to attach an interrupt on a samd21 controller with
attachInterrupt(25, ISR, FALLING);
but the interrupt doesn't get triggered. Is my definition in the variant.cpp correct and should it be supposed to work?
It is NOT changeable. Any pin can cause an interrupt, but each pin causes a PARTICULAR interrupt.
See part 7 of the datasheet ("I/O Multiplexing and Considerations")
(also, it doesn't work if your try to enable interrupts on two pins that use the same interrupt)