[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Fermi at aol.com wrote:
> How is the ticks_per_second set in rtems?

It is set using confdefs.h as follows:

#define CONFIGURE_MICROSECONDS_PER_TICK some_magic_number

Be sure to do this before include <confdefs.h>

The default setting is:


FWIW, the history of confdefs.h is that it started as a test support
mechanism to avoid putting configuration tables in EVERY test.  We
got tired of maintaining that many configuration tables.  The
confdefs.h scheme worked well enough that people starting using it
in their applications.  Just prior to the release of 4.0, there was
a burst of activity to finish up generalizing it.  

Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985