diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-09-09 11:58:50 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-09-09 11:58:50 +0000 |
commit | d12e00bdd6ffbb39ab5d45d5d5a484d293108021 (patch) | |
tree | a5ac9dcc5be841e9edff869055b73651f525072c /nuttx/sched | |
parent | 712b9f5349a81fe56fa060ccb8aa13e0db830657 (diff) | |
download | px4-nuttx-d12e00bdd6ffbb39ab5d45d5d5a484d293108021.tar.gz px4-nuttx-d12e00bdd6ffbb39ab5d45d5d5a484d293108021.tar.bz2 px4-nuttx-d12e00bdd6ffbb39ab5d45d5d5a484d293108021.zip |
Added network init; refactored some header files
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@338 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched')
-rw-r--r-- | nuttx/sched/clock_internal.h | 2 | ||||
-rw-r--r-- | nuttx/sched/mq_descreate.c | 1 | ||||
-rw-r--r-- | nuttx/sched/mq_getattr.c | 1 | ||||
-rw-r--r-- | nuttx/sched/mq_rcvinternal.c | 1 | ||||
-rw-r--r-- | nuttx/sched/os_internal.h | 1 | ||||
-rw-r--r-- | nuttx/sched/os_start.c | 15 | ||||
-rw-r--r-- | nuttx/sched/pthread_setschedprio.c | 1 | ||||
-rw-r--r-- | nuttx/sched/sched_free.c | 1 | ||||
-rw-r--r-- | nuttx/sched/sched_getprioritymax.c | 1 | ||||
-rw-r--r-- | nuttx/sched/sched_getprioritymin.c | 1 | ||||
-rw-r--r-- | nuttx/sched/sched_getscheduler.c | 1 | ||||
-rw-r--r-- | nuttx/sched/sched_rrgetinterval.c | 1 | ||||
-rw-r--r-- | nuttx/sched/sched_setparam.c | 1 | ||||
-rw-r--r-- | nuttx/sched/sched_setscheduler.c | 1 | ||||
-rw-r--r-- | nuttx/sched/sched_yield.c | 1 | ||||
-rw-r--r-- | nuttx/sched/sig_internal.h | 1 | ||||
-rw-r--r-- | nuttx/sched/sig_procmask.c | 1 | ||||
-rw-r--r-- | nuttx/sched/sig_releasependingsignal.c | 1 | ||||
-rw-r--r-- | nuttx/sched/sig_removependingsignal.c | 1 | ||||
-rw-r--r-- | nuttx/sched/task_delete.c | 1 | ||||
-rw-r--r-- | nuttx/sched/task_restart.c | 1 |
21 files changed, 16 insertions, 20 deletions
diff --git a/nuttx/sched/clock_internal.h b/nuttx/sched/clock_internal.h index 2b1346880..3c394520c 100644 --- a/nuttx/sched/clock_internal.h +++ b/nuttx/sched/clock_internal.h @@ -42,7 +42,7 @@ #include <nuttx/config.h> #include <sys/types.h> -#include <nuttx/os_external.h> +#include <nuttx/clock.h> #include <nuttx/compiler.h> /******************************************************************************** diff --git a/nuttx/sched/mq_descreate.c b/nuttx/sched/mq_descreate.c index 98026ad19..69ddf999c 100644 --- a/nuttx/sched/mq_descreate.c +++ b/nuttx/sched/mq_descreate.c @@ -45,7 +45,6 @@ #include <sched.h> #include <debug.h> #include <nuttx/arch.h> -#include <nuttx/os_external.h> #include "os_internal.h" #include "sig_internal.h" diff --git a/nuttx/sched/mq_getattr.c b/nuttx/sched/mq_getattr.c index 52292410e..71f2a87df 100644 --- a/nuttx/sched/mq_getattr.c +++ b/nuttx/sched/mq_getattr.c @@ -47,7 +47,6 @@ #include <debug.h> #include <nuttx/kmalloc.h> #include <nuttx/arch.h> -#include <nuttx/os_external.h> #include "os_internal.h" #include "sig_internal.h" #include "mq_internal.h" diff --git a/nuttx/sched/mq_rcvinternal.c b/nuttx/sched/mq_rcvinternal.c index dcbfc0b31..853ac0bc1 100644 --- a/nuttx/sched/mq_rcvinternal.c +++ b/nuttx/sched/mq_rcvinternal.c @@ -46,7 +46,6 @@ #include <sched.h> #include <debug.h> #include <nuttx/arch.h> -#include <nuttx/os_external.h> #include "os_internal.h" #include "mq_internal.h" diff --git a/nuttx/sched/os_internal.h b/nuttx/sched/os_internal.h index 94da9bbbc..a54157cd8 100644 --- a/nuttx/sched/os_internal.h +++ b/nuttx/sched/os_internal.h @@ -43,7 +43,6 @@ #include <queue.h> #include <sched.h> #include <nuttx/kmalloc.h> -#include <nuttx/os_external.h> /************************************************************ * Definitions diff --git a/nuttx/sched/os_start.c b/nuttx/sched/os_start.c index c01778295..7591e8878 100644 --- a/nuttx/sched/os_start.c +++ b/nuttx/sched/os_start.c @@ -44,8 +44,10 @@ #include <nuttx/arch.h> #include <nuttx/compiler.h> #include <nuttx/fs.h> +#include <nuttx/net.h> #include <nuttx/lib.h> -#include <nuttx/os_external.h> +#include <nuttx/mm.h> +#include <nuttx/init.h> #include "os_internal.h" #include "sig_internal.h" #include "wd_internal.h" @@ -387,6 +389,17 @@ void os_start(void) } #endif + /* Initialize the network system */ + +#ifdef CONFIG_NET +#if 0 + if (net_initialize != NULL) +#endif + { + net_initialize(); + } +#endif + /* The processor specific details of running the operating system * will be handled here. Such things as setting up interrupt * service routines and starting the clock are some of the things diff --git a/nuttx/sched/pthread_setschedprio.c b/nuttx/sched/pthread_setschedprio.c index 8ff86a924..d5a5705dc 100644 --- a/nuttx/sched/pthread_setschedprio.c +++ b/nuttx/sched/pthread_setschedprio.c @@ -42,7 +42,6 @@ #include <sched.h> #include <errno.h> #include <nuttx/arch.h> -#include <nuttx/os_external.h> #include "os_internal.h" /**************************************************************************** diff --git a/nuttx/sched/sched_free.c b/nuttx/sched/sched_free.c index ec2688c57..6078cc1b6 100644 --- a/nuttx/sched/sched_free.c +++ b/nuttx/sched/sched_free.c @@ -42,6 +42,7 @@ #include <queue.h> #include <assert.h> #include <nuttx/arch.h> +#include <nuttx/mm.h> #include "os_internal.h" /************************************************************ diff --git a/nuttx/sched/sched_getprioritymax.c b/nuttx/sched/sched_getprioritymax.c index f137b72c6..6c1125c07 100644 --- a/nuttx/sched/sched_getprioritymax.c +++ b/nuttx/sched/sched_getprioritymax.c @@ -40,7 +40,6 @@ #include <nuttx/config.h> #include <sys/types.h> #include <nuttx/arch.h> -#include <nuttx/os_external.h> #include "os_internal.h" /************************************************************ diff --git a/nuttx/sched/sched_getprioritymin.c b/nuttx/sched/sched_getprioritymin.c index 154432c66..e8b62a5f8 100644 --- a/nuttx/sched/sched_getprioritymin.c +++ b/nuttx/sched/sched_getprioritymin.c @@ -40,7 +40,6 @@ #include <nuttx/config.h> #include <sys/types.h> #include <nuttx/arch.h> -#include <nuttx/os_external.h> #include "os_internal.h" /************************************************************ diff --git a/nuttx/sched/sched_getscheduler.c b/nuttx/sched/sched_getscheduler.c index ae9739185..8eea5339e 100644 --- a/nuttx/sched/sched_getscheduler.c +++ b/nuttx/sched/sched_getscheduler.c @@ -42,7 +42,6 @@ #include <sched.h> #include <errno.h> #include <nuttx/arch.h> -#include <nuttx/os_external.h> #include "os_internal.h" /************************************************************ diff --git a/nuttx/sched/sched_rrgetinterval.c b/nuttx/sched/sched_rrgetinterval.c index 8e0ca2824..ee4d4aea9 100644 --- a/nuttx/sched/sched_rrgetinterval.c +++ b/nuttx/sched/sched_rrgetinterval.c @@ -42,7 +42,6 @@ #include <sched.h> #include <errno.h> #include <nuttx/arch.h> -#include <nuttx/os_external.h> #include "os_internal.h" #include "clock_internal.h" diff --git a/nuttx/sched/sched_setparam.c b/nuttx/sched/sched_setparam.c index 09b834873..e5a61c856 100644 --- a/nuttx/sched/sched_setparam.c +++ b/nuttx/sched/sched_setparam.c @@ -42,7 +42,6 @@ #include <sched.h> #include <errno.h> #include <nuttx/arch.h> -#include <nuttx/os_external.h> #include "os_internal.h" /************************************************************ diff --git a/nuttx/sched/sched_setscheduler.c b/nuttx/sched/sched_setscheduler.c index 4d4978a62..7fee93118 100644 --- a/nuttx/sched/sched_setscheduler.c +++ b/nuttx/sched/sched_setscheduler.c @@ -43,7 +43,6 @@ #include <sched.h> #include <errno.h> #include <nuttx/arch.h> -#include <nuttx/os_external.h> #include "os_internal.h" #include "clock_internal.h" diff --git a/nuttx/sched/sched_yield.c b/nuttx/sched/sched_yield.c index ae4db7178..edbb00abc 100644 --- a/nuttx/sched/sched_yield.c +++ b/nuttx/sched/sched_yield.c @@ -40,7 +40,6 @@ #include <nuttx/config.h> #include <sys/types.h> #include <nuttx/arch.h> -#include <nuttx/os_external.h> #include "os_internal.h" /************************************************************ diff --git a/nuttx/sched/sig_internal.h b/nuttx/sched/sig_internal.h index 8ae975e42..93dee0904 100644 --- a/nuttx/sched/sig_internal.h +++ b/nuttx/sched/sig_internal.h @@ -44,7 +44,6 @@ #include <queue.h> #include <sched.h> #include <nuttx/kmalloc.h> -#include <nuttx/os_external.h> /************************************************************ * Definitions diff --git a/nuttx/sched/sig_procmask.c b/nuttx/sched/sig_procmask.c index 339e6dda5..2451f830d 100644 --- a/nuttx/sched/sig_procmask.c +++ b/nuttx/sched/sig_procmask.c @@ -47,7 +47,6 @@ #include <sched.h> #include <nuttx/kmalloc.h> #include <nuttx/arch.h> -#include <nuttx/os_external.h> #include "os_internal.h" #include "sig_internal.h" diff --git a/nuttx/sched/sig_releasependingsignal.c b/nuttx/sched/sig_releasependingsignal.c index 198c145df..0c5a74595 100644 --- a/nuttx/sched/sig_releasependingsignal.c +++ b/nuttx/sched/sig_releasependingsignal.c @@ -47,7 +47,6 @@ #include <sched.h> #include <nuttx/kmalloc.h> #include <nuttx/arch.h> -#include <nuttx/os_external.h> #include "os_internal.h" #include "sig_internal.h" diff --git a/nuttx/sched/sig_removependingsignal.c b/nuttx/sched/sig_removependingsignal.c index c31c0bbe7..7ee9752fc 100644 --- a/nuttx/sched/sig_removependingsignal.c +++ b/nuttx/sched/sig_removependingsignal.c @@ -47,7 +47,6 @@ #include <sched.h> #include <nuttx/kmalloc.h> #include <nuttx/arch.h> -#include <nuttx/os_external.h> #include "os_internal.h" #include "sig_internal.h" diff --git a/nuttx/sched/task_delete.c b/nuttx/sched/task_delete.c index 86a796ab7..691b7c57e 100644 --- a/nuttx/sched/task_delete.c +++ b/nuttx/sched/task_delete.c @@ -41,7 +41,6 @@ #include <sys/types.h> #include <sched.h> -#include <nuttx/os_external.h> #include "os_internal.h" #ifndef CONFIG_DISABLE_SIGNALS # include "sig_internal.h" diff --git a/nuttx/sched/task_restart.c b/nuttx/sched/task_restart.c index 399bcb6e5..3d682eb3d 100644 --- a/nuttx/sched/task_restart.c +++ b/nuttx/sched/task_restart.c @@ -41,7 +41,6 @@ #include <sys/types.h> #include <sched.h> #include <nuttx/arch.h> -#include <nuttx/os_external.h> #include "os_internal.h" #include "sig_internal.h" |