[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ticks_per_second
- Date: Fri, 17 Dec 1999 07:07:54 -0600
- From: joel.sherrill at OARcorp.com (Joel Sherrill)
- Subject: ticks_per_second
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:
#define CONFIGURE_MICROSECONDS_PER_TICK
RTEMS_MILLISECONDS_TO_MICROSECONDS(10)
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
- Follow-Ups:
- unsubscribe
- From: roosej at mcd.alcatel.be (Johan Vanroose)