How long is a System Tick ?
Posted: Sun Dec 01, 2013 11:20 pm
Hi
This is a newbie question, but I could not find an answer.
I found the definition for system tick below, and I know that a virtual timer works on system ticks.
but how is the system Tick related to the MCU (STM32F4) frequency?
Would I change this definition below (in chconf.h) depending on my CPU quartz used?
Thanks
/**
* @brief System tick frequency.
* @details Frequency of the system timer that drives the system ticks. This
* setting also defines the system tick time unit.
*/
#if !defined(CH_FREQUENCY) || defined(__DOXYGEN__)
#define CH_FREQUENCY 1000
#endif
This is a newbie question, but I could not find an answer.
I found the definition for system tick below, and I know that a virtual timer works on system ticks.
but how is the system Tick related to the MCU (STM32F4) frequency?
Would I change this definition below (in chconf.h) depending on my CPU quartz used?
Thanks
/**
* @brief System tick frequency.
* @details Frequency of the system timer that drives the system ticks. This
* setting also defines the system tick time unit.
*/
#if !defined(CH_FREQUENCY) || defined(__DOXYGEN__)
#define CH_FREQUENCY 1000
#endif