Add support for custom system timer frequency

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@274 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2007-06-09 15:49:44 +00:00
parent da19e798e6
commit aca030153f
14 changed files with 97 additions and 17 deletions
+18 -2
View File
@@ -114,11 +114,27 @@
#define _POSIX_RTSIG_MAX 31
#define _POSIX_SIGQUEUE_MAX 32
/* Required for POSIX timers */
/* Required for POSIX timers.
*
* _POSIX_DELAYTIMER_MAX is the number of timer expiration overruns.
*
* _POSIX_TIMER_MAX is the per-process number of timers.
*
* _POSIX_CLOCKRES_MIN is the resolution of the CLOCK_REALTIME clock in nanoseconds.
* CLOCK_REALTIME is controlled by the NuttX system time. The default value is the
* system timer which has a resolution of 10 milliseconds. This default setting can
* be overridden by defining the clock interval in milliseconds as CONFIG_MSEC_PER_TICK
* in the board configuration file.
*/
#define _POSIX_DELAYTIMER_MAX 32
#define _POSIX_TIMER_MAX 32
#define _POSIX_CLOCKRES_MIN 10000000
#ifdef CONFIG_MSEC_PER_TICK
# define _POSIX_CLOCKRES_MIN ((CONFIG_MSEC_PER_TICK)*1000000)
#else
# define _POSIX_CLOCKRES_MIN (10*1000000)
#endif
/* Required for asynchronous I/O */