From f1999a4cc02370a873caffd1670d67afa08783b0 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 8 Sep 2007 19:50:59 +0000 Subject: Implemented several options in set/getsockopts git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@334 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/sched/clock_internal.h | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) (limited to 'nuttx/sched') 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 #include +#include #include /******************************************************************************** * 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; -- cgit v1.2.3