Same pin as timer input and GPIO input
If I configure a pin as a timer input capture channel input, can I also read the state of that pin as a GPIO input?
I'd like configure the timer channel as an input capture channel, and I'd like to capture both rising and falling edges. But when the edge is detected, how can I determine whether it was the rising or falling edge? Can I also enable the GPIO input stage for that pin and read its state after the edge is detected? I don't see any way to do this in STM32CubeMX. Is there some other way to determine whether the timer detected a rising or falling edge?