How can I set up the Input Capture peripheral to be triggered by the Comparator event?
I've set COMP1[+] on PA1 and [-] from Vref. Without being sure I've configured the COMP1 trigger mode to event mode on both edges.
In the comparator's HAL file the comments mention that "Comparators output to timers is set in timers instances", but I haven't been able to find a relevant option.
My goal is to measure the time between each voltage threshold edge on PA1 vs Vref.
Thanks in advance for any advice!