User Activity

I would like to change the pin configuration from GPIO Input to INPUT_CAPTURE_MODE_Channel in the code (dynamically). How to achieve this ?I'm using STM32F103CBT6.Please Help. Thank you.
I am using STM32F103C8, in which I want to use pins which are configured as digital input to detect the square wave frequency or the frequency at which the pin is reading high and low.Is it possible without Input capture direct mode?
Kudos from