I want to use a pin as a CTIMER capture input for both edges. When the ISR is fired, I want to read the digital input level to understand if the trigger that fired the ISR has been for rising or following edge.
However I don't know if it is possible, because it seems GPIO functionalities are disabled when the pin is configured as a "special function" (in my case, timer capture).
Moreover I can't deduce the edge that caused the trigger, because the interrupt flag isn't splitted between rising and falling, there's only one flag per input capture.