Re: Measuring time using an STM32F407VGT6 microcontroller
Posted: Tue Feb 21, 2017 3:21 pm
Hi,
You can use the system time:
Giovanni
You can use the system time:
Code: Select all
/**
* @brief Current system time.
* @details Returns the number of system ticks since the @p chSysInit()
* invocation.
* @note The counter can reach its maximum and then restart from zero.
* @note This function can be called from any context but its atomicity
* is not guaranteed on architectures whose word size is less than
* @p systime_t size.
*
* @return The system time in ticks.
*/
static inline systime_t chVTGetSystemTimeX(void)
Giovanni