Timer measuring time between state change on two digital inputs
I am using STM32F070 processor. I want to implement a function where I should measure the time difference between the change of input level on two digital IOs. There is no fixed sequence of the change in level on both the IOs. i.e. any one of the two IOs can change the state first and then the second one.
I want to know if I could use any conifguration of timer to achieve this? In other words, can I use any of the processor timer to start/record a time on first level change on one input and stop/record time on second level change on another input.
Thanks.