summaryrefslogtreecommitdiffstats
path: root/c/src/tests/samples/pppd/system.h
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2003-04-29 02:04:26 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2003-04-29 02:04:26 +0000
commit478bb1e63d1ddecd7579a0628f3f54cc4f5afa7f (patch)
tree4ee5bb16317d68971808b4758b796cfc53338395 /c/src/tests/samples/pppd/system.h
parent2003-04-18 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-478bb1e63d1ddecd7579a0628f3f54cc4f5afa7f.tar.bz2
2003-04-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
Adding pppd: * pppd/Makefile-user: New, copied over from libnetworking/pppd/example. * pppd/README: New, copied over from libnetworking/pppd/example. * pppd/init.c: New, copied over from libnetworking/pppd/example. * pppd/netconfig.h: New, copied over from libnetworking/pppd/example. * pppd/ppp.conf: New, copied over from libnetworking/pppd/example. * pppd/pppdapp.c: New, copied over from libnetworking/pppd/example. * pppd/system.h: New, copied over from libnetworking/pppd/example. * pppd/pppd.options: New, copied over from libnetworking/pppd/example. * pppd/Makefile.am: New, converted to automake from Makefile-user. * pppd/.cvsignore: New.
Diffstat (limited to '')
-rw-r--r--c/src/tests/samples/pppd/system.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/c/src/tests/samples/pppd/system.h b/c/src/tests/samples/pppd/system.h
new file mode 100644
index 0000000000..87678da1b6
--- /dev/null
+++ b/c/src/tests/samples/pppd/system.h
@@ -0,0 +1,42 @@
+
+#ifndef SYSTEM_H
+#define SYSTEM_H
+
+#include <rtems.h>
+#include <tty_drv.h>
+
+/* functions */
+extern rtems_task Init(rtems_task_argument argument);
+
+#include <bsp.h>
+
+#define CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE
+#ifdef CONFIGURE_INIT
+rtems_driver_address_table Device_drivers[5] = {
+ CONSOLE_DRIVER_TABLE_ENTRY,
+ CLOCK_DRIVER_TABLE_ENTRY,
+ TTY1_DRIVER_TABLE_ENTRY,
+ TTY2_DRIVER_TABLE_ENTRY,
+ {NULL, NULL, NULL, NULL, NULL, NULL}
+};
+#endif
+
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 8
+
+#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))
+
+#include <confdefs.h>
+
+#endif