diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-09-08 19:50:59 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-09-08 19:50:59 +0000 |
commit | f1999a4cc02370a873caffd1670d67afa08783b0 (patch) | |
tree | b852cb8f6b5074f322c9f5c28408d1fd6a7d9835 /nuttx/sched | |
parent | a40d3bfbe2690c0aa60fb372646c21da3e7a1512 (diff) | |
download | px4-nuttx-f1999a4cc02370a873caffd1670d67afa08783b0.tar.gz px4-nuttx-f1999a4cc02370a873caffd1670d67afa08783b0.tar.bz2 px4-nuttx-f1999a4cc02370a873caffd1670d67afa08783b0.zip |
Implemented several options in set/getsockopts
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@334 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched')
-rw-r--r-- | nuttx/sched/clock_internal.h | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/nuttx/sched/clock_internal.h b/nuttx/sched/clock_internal.h index 2f7a9c783..2b1346880 100644 --- a/nuttx/sched/clock_internal.h +++ b/nuttx/sched/clock_internal.h @@ -42,42 +42,13 @@ #include <nuttx/config.h> #include <sys/types.h> +#include <nuttx/os_external.h> #include <nuttx/compiler.h> /******************************************************************************** * Definitions ********************************************************************************/ -/* Timing constants */ - -#define NSEC_PER_SEC 1000000000 -#define USEC_PER_SEC 1000000 -#define MSEC_PER_SEC 1000 -#define NSEC_PER_MSEC 1000000 -#define USEC_PER_MSEC 1000 -#define NSEC_PER_USEC 1000 - -/* The interrupt interval of the system timer is given by MSEC_PER_TICK. This - * is the expected number of milliseconds between calls from the processor- - * specific logic to sched_process_timer(). The default value of MSEC_PER_TICK - * is 10 milliseconds (100KHz). However, this default setting can be overridden - * by defining the interval in milliseconds as CONFIG_MSEC_PER_TICK in the board - * configuration file. - */ - -#ifdef CONFIG_MSEC_PER_TICK -# define MSEC_PER_TICK (CONFIG_MSEC_PER_TICK) -#else -# define MSEC_PER_TICK (10) -#endif - -#define USEC_PER_TICK (MSEC_PER_TICK * USEC_PER_MSEC) -#define NSEC_PER_TICK (MSEC_PER_TICK * NSEC_PER_MSEC) -#define TICK_PER_SEC (MSEC_PER_SEC / MSEC_PER_TICK) - -#define MSEC2TICK(msec) (((msec)+(MSEC_PER_TICK/2))/MSEC_PER_TICK) -#define USEC2TICK(usec) (((usec)+(USEC_PER_TICK/2))/USEC_PER_TICK) - #define JD_OF_EPOCH 2440588 /* Julian Date of noon, J1970 */ #ifdef CONFIG_JULIAN_TIME @@ -97,7 +68,6 @@ * Global Variables ********************************************************************************/ -extern volatile uint32 g_system_timer; extern struct timespec g_basetime; extern uint32 g_tickbias; |