EXTI event timestamping newbie
Posted: Wed Mar 06, 2013 11:53 am
Hi,
I am using the EXTI driver on a OLIMEX_STM32_H407 board to capture external events (i.e. data ready from a gyro).
What is the best/suggested way to grab an accurate time stamp for the event?
Since I do not need an RTC time stamp currently I am thinking to simply grab chTimeNow() within the EXTI routine;
is this a good way to have the most accurate time between two events (obtained subtracting the relevant time stamps of course)?
thanks in advance
Renzo
I am using the EXTI driver on a OLIMEX_STM32_H407 board to capture external events (i.e. data ready from a gyro).
What is the best/suggested way to grab an accurate time stamp for the event?
Since I do not need an RTC time stamp currently I am thinking to simply grab chTimeNow() within the EXTI routine;
is this a good way to have the most accurate time between two events (obtained subtracting the relevant time stamps of course)?
thanks in advance
Renzo