I've been trying to figure out how to time a button press in project zero. At first I was trying to use the OSAL timer, until after some time I found a post that said this cannot be used with the CC26xx. Then I moved on to the Util Clock, which seems great for periodic interrupts, but there doesn't seem to be a way to query how long it has been running for.
If I can figure out the clocks/timers, my plan is to have an interrupt on both edges of the button pin, Start the timer on the rising edge, then stop it and read it on the falling edge. If it exceeds it's period then it will act based on the timer callback.
I'm really not sure what to do now or where else to look for the functionality I require. Could someone please point me in the right direction and give me some advice on how to achieve my goal?