summaryrefslogtreecommitdiffstats
path: root/ntp
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-12 19:59:54 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-12 19:59:54 +0000
commit0417fe38d63d1f663a72e9afc13a68126d9e4576 (patch)
tree0a5b0ea86207649ad3c5e1f3bd3f2544727c1480 /ntp
parent2009-05-12 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadnetwork-demos-0417fe38d63d1f663a72e9afc13a68126d9e4576.tar.bz2
2009-05-12 Joel Sherrill <joel.sherrill@OARcorp.com>
* init.c: Now build with libbsdport.
Diffstat (limited to 'ntp')
-rw-r--r--ntp/ChangeLog4
-rw-r--r--ntp/init.c49
2 files changed, 29 insertions, 24 deletions
diff --git a/ntp/ChangeLog b/ntp/ChangeLog
index 92c7082..58528d8 100644
--- a/ntp/ChangeLog
+++ b/ntp/ChangeLog
@@ -1,3 +1,7 @@
+2009-05-12 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * init.c: Now build with libbsdport.
+
2007-09-25 Joel Sherrill <joel.sherrill@oarcorp.com>
* .cvsignore: New file.
diff --git a/ntp/init.c b/ntp/init.c
index ac48775..a85d6cc 100644
--- a/ntp/init.c
+++ b/ntp/init.c
@@ -17,30 +17,6 @@
#include <bsp.h>
-#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
-#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
-#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
-#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_MICROSECONDS_PER_TICK 10000
-
-#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 | \
- RTEMS_INTERRUPT_LEVEL(0))
-
-#define CONFIGURE_INIT
-rtems_task Init (rtems_task_argument argument);
-
-#include <rtems/confdefs.h>
-
#include <stdio.h>
#include <stdlib.h>
#include <rtems/rtems_bsdnet.h>
@@ -82,3 +58,28 @@ Init (rtems_task_argument ignored)
(long) now.ticks);
exit (0);
}
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+#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_MICROSECONDS_PER_TICK 10000
+
+#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 | \
+ RTEMS_INTERRUPT_LEVEL(0))
+
+#define CONFIGURE_INIT
+rtems_task Init (rtems_task_argument argument);
+
+#include <rtems/confdefs.h>
+