diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-07-11 18:28:51 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-07-11 18:28:51 +0000 |
commit | 7f1472585fc6378167e784175d7060430ac64fee (patch) | |
tree | 0c6e310c8e314d2237e3a525924c80c664e9ae82 | |
parent | 2007-06-22 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | network-demos-7f1472585fc6378167e784175d7060430ac64fee.tar.bz2 |
2007-07-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile: Include all managers.
* init.c: Make the test just a bit more verbose in case the
network initialization failure.
-rw-r--r-- | netdemo/ChangeLog | 6 | ||||
-rw-r--r-- | netdemo/Makefile | 2 | ||||
-rw-r--r-- | netdemo/init.c | 29 |
3 files changed, 23 insertions, 14 deletions
diff --git a/netdemo/ChangeLog b/netdemo/ChangeLog index ff81d4c..cf89728 100644 --- a/netdemo/ChangeLog +++ b/netdemo/ChangeLog @@ -1,3 +1,9 @@ +2007-07-11 Joel Sherrill <joel.sherrill@oarcorp.com> + + * Makefile: Include all managers. + * init.c: Make the test just a bit more verbose in case the + network initialization failure. + 2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com> * test.c: More warnings removed. diff --git a/netdemo/Makefile b/netdemo/Makefile index f8474f1..4302f09 100644 --- a/netdemo/Makefile +++ b/netdemo/Makefile @@ -5,7 +5,7 @@ SAMPLE=netdemo PGM=${ARCH}/$(SAMPLE).exe -MANAGERS=io event semaphore +MANAGERS=all # C source names, if any, go here -- minus the .c C_PIECES= init test diff --git a/netdemo/init.c b/netdemo/init.c index bc04110..f901e79 100644 --- a/netdemo/init.c +++ b/netdemo/init.c @@ -3,8 +3,8 @@ * * This program may be distributed and used for any purpose. * I ask only that you: - * 1. Leave this author information intact. - * 2. Document any changes you make. + * 1. Leave this author information intact. + * 2. Document any changes you make. * * W. Eric Norum * Saskatchewan Accelerator Laboratory @@ -23,14 +23,14 @@ #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20 #define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM -#define CONFIGURE_EXECUTIVE_RAM_SIZE (512*1024) -#define CONFIGURE_MAXIMUM_SEMAPHORES 20 -#define CONFIGURE_MAXIMUM_TASKS 20 +#define CONFIGURE_EXECUTIVE_RAM_SIZE (512*1024) +#define CONFIGURE_MAXIMUM_SEMAPHORES 20 +#define CONFIGURE_MAXIMUM_TASKS 20 -#define CONFIGURE_MICROSECONDS_PER_TICK 10000 +#define CONFIGURE_MICROSECONDS_PER_TICK 10000 -#define CONFIGURE_INIT_TASK_STACK_SIZE (10*1024) -#define CONFIGURE_INIT_TASK_PRIORITY 120 +#define CONFIGURE_INIT_TASK_STACK_SIZE (10*1024) +#define CONFIGURE_INIT_TASK_PRIORITY 120 #define CONFIGURE_INIT_TASK_INITIAL_MODES (RTEMS_PREEMPT | \ RTEMS_NO_TIMESLICE | \ RTEMS_NO_ASR | \ @@ -52,10 +52,13 @@ rtems_task Init (rtems_task_argument argument); rtems_task Init (rtems_task_argument ignored) { - int doSocket(void); + int doSocket(void); - rtems_bsdnet_initialize_network (); - rtems_bsdnet_show_inet_routes (); - doSocket (); - exit (0); + printk( "Initialize network\n" ); + rtems_bsdnet_initialize_network (); + printk( "Network initialized\n" ); + rtems_bsdnet_show_inet_routes (); + printk( "Initiating test\n" ); + doSocket (); + exit (0); } |