summaryrefslogtreecommitdiff
path: root/http/init.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-13 18:54:45 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-13 18:54:45 +0000
commit5d2c26f18f3aac94f9ef4b0f7e0fc09313f3209f (patch)
tree17fbc110cabd712534cd3009d8a21cfe0fb4841a /http/init.c
parent0417fe38d63d1f663a72e9afc13a68126d9e4576 (diff)
2009-05-13 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile, init.c, system.h: Allow overrides from invoking environment. Also move RTEMS Configuration to bottom of init.c.
Diffstat (limited to 'http/init.c')
-rw-r--r--http/init.c48
1 files changed, 25 insertions, 23 deletions
diff --git a/http/init.c b/http/init.c
index 075dcfb..9e5d0fc 100644
--- a/http/init.c
+++ b/http/init.c
@@ -5,35 +5,12 @@
* Don't forget to change the IP addresses
*/
-#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_STACK_CHECKER_ENABLED
-#define CONFIGURE_INIT
-
#include "system.h"
#include <bsp.h>
#include <errno.h>
#include <time.h>
-#include <rtems/confdefs.h>
#include <stdio.h>
#include <rtems/rtems_bsdnet.h>
#include <rtems/ftpd.h>
@@ -172,5 +149,30 @@ rtems_task Init(
}
+/*
+ * Configuration
+ */
+#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_STACK_CHECKER_ENABLED
+#define CONFIGURE_INIT
+
+#include <rtems/confdefs.h>