From df6d765c3aa13d7f83b602127cb9aa97c592c7cf Mon Sep 17 00:00:00 2001 From: Vijay Kumar Banerjee Date: Fri, 26 Feb 2021 16:19:20 -0700 Subject: testsuites: Remove all legacy networking tests Update #3850 --- testsuites/samples/loopback/README | 61 ------- testsuites/samples/loopback/init.c | 264 ------------------------------- testsuites/samples/loopback/loopback.scn | 56 ------- testsuites/samples/pppd/README | 11 -- testsuites/samples/pppd/init.c | 61 ------- testsuites/samples/pppd/netconfig.h | 33 ---- testsuites/samples/pppd/ppp.conf | 27 ---- testsuites/samples/pppd/pppd.options | 9 -- testsuites/samples/pppd/pppdapp.c | 152 ------------------ testsuites/samples/pppd/system.h | 50 ------ 10 files changed, 724 deletions(-) delete mode 100644 testsuites/samples/loopback/README delete mode 100644 testsuites/samples/loopback/init.c delete mode 100644 testsuites/samples/loopback/loopback.scn delete mode 100644 testsuites/samples/pppd/README delete mode 100644 testsuites/samples/pppd/init.c delete mode 100644 testsuites/samples/pppd/netconfig.h delete mode 100644 testsuites/samples/pppd/ppp.conf delete mode 100644 testsuites/samples/pppd/pppd.options delete mode 100644 testsuites/samples/pppd/pppdapp.c delete mode 100644 testsuites/samples/pppd/system.h (limited to 'testsuites/samples') diff --git a/testsuites/samples/loopback/README b/testsuites/samples/loopback/README deleted file mode 100644 index 9090e93414..0000000000 --- a/testsuites/samples/loopback/README +++ /dev/null @@ -1,61 +0,0 @@ -Simple test of kernel network code. -Requires no network hardware since only the loopback network address is used. - -Output should look like: -======================================================================== -"Network" initializing! -"Network" initialized! -Try running client with no server present. -Should fail with `connection refused'. -Connect to server. -Can't connect to server: Connection refused -Client closing connection. - -Start server. - -Try running client with server present. -Create socket. -Connect to server. -Bind socket. -Can't connect to server: Connection refused -Client closing connection. -Client task terminating. - -Try running two clients. -Connect to server. -Connect to server. -ACCEPTED:7F000001 -ACCEPTED:7F000001 -Write 22-byte message to server. -Write 22-byte message to server. -Read 43 from server: Server received 22 (Hi there, server (2).) -Read 43 from server: Server received 22 (Hi there, server (3).) -Client closing connection. -Client task terminating. -Worker task terminating. -Client closing connection. -Client task terminating. -Worker task terminating. - -Try running three clients. -Connect to server. -Connect to server. -Connect to server. -ACCEPTED:7F000001 -ACCEPTED:7F000001 -ACCEPTED:7F000001 -Write 22-byte message to server. -Write 22-byte message to server. -Write 22-byte message to server. -Read 43 from server: Server received 22 (Hi there, server (4).) -Read 43 from server: Server received 22 (Hi there, server (5).) -Read 43 from server: Server received 22 (Hi there, server (6).) -Client closing connection. -Client task terminating. -Worker task terminating. -Client closing connection. -Client task terminating. -Worker task terminating. -Client closing connection. -Client task terminating. -Worker task terminating. diff --git a/testsuites/samples/loopback/init.c b/testsuites/samples/loopback/init.c deleted file mode 100644 index 891225c5ed..0000000000 --- a/testsuites/samples/loopback/init.c +++ /dev/null @@ -1,264 +0,0 @@ -/* - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -const char rtems_test_name[] = "LOOPBACK"; - -#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER -#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER -#define CONFIGURE_RTEMS_INIT_TASKS_TABLE - -#define CONFIGURE_EXECUTIVE_RAM_SIZE (512*1024) -#define CONFIGURE_MAXIMUM_SEMAPHORES 20 -#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 20 -#define CONFIGURE_MAXIMUM_TASKS 20 - -#define CONFIGURE_MICROSECONDS_PER_TICK 10000 -#define CONFIGURE_MAXIMUM_FILE_DESCRIPTORS 50 - -#define CONFIGURE_INIT_TASK_STACK_SIZE (10*1024) -#define CONFIGURE_INIT_TASK_PRIORITY 50 -#define CONFIGURE_INIT_TASK_INITIAL_MODES (RTEMS_PREEMPT | \ - RTEMS_NO_TIMESLICE | \ - RTEMS_NO_ASR | \ - RTEMS_INTERRUPT_LEVEL(0)) -#define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_FLOATING_POINT - -#define CONFIGURE_INIT -rtems_task Init(rtems_task_argument argument); - -#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -/* - * Network configuration - */ - -struct rtems_bsdnet_config rtems_bsdnet_config = { - NULL, /* Network interface */ - NULL, /* Use fixed network configuration */ - 0, /* Default network task priority */ - 0, /* Default mbuf capacity */ - 0, /* Default mbuf cluster capacity */ - "testSystem", /* Host name */ - "nowhere.com", /* Domain name */ - "127.0.0.1", /* Gateway */ - "127.0.0.1", /* Log host */ - {"127.0.0.1" }, /* Name server(s) */ - {"127.0.0.1" }, /* NTP server(s) */ - 0, - 0, - 0, - 0, - 0 -}; - -/* - * Spawn a task - */ -static void spawnTask(rtems_task_entry entryPoint, rtems_task_priority priority, rtems_task_argument arg) -{ - rtems_status_code sc; - rtems_id tid; - - sc = rtems_task_create(rtems_build_name('t','a','s','k'), - priority, - RTEMS_MINIMUM_STACK_SIZE+(8*1024), - RTEMS_PREEMPT|RTEMS_TIMESLICE|RTEMS_NO_ASR|RTEMS_INTERRUPT_LEVEL(0), - RTEMS_FLOATING_POINT|RTEMS_LOCAL, - &tid); - if (sc != RTEMS_SUCCESSFUL) - rtems_panic("Can't create task: %s", rtems_status_text(sc)); - sc = rtems_task_start(tid, entryPoint, arg); - if (sc != RTEMS_SUCCESSFUL) - rtems_panic("Can't start task: %s", rtems_status_text(sc)); -} - -/* - * Server subtask - */ -static rtems_task workerTask(rtems_task_argument arg) -{ - int s = arg; - char msg[80]; - char reply[120]; - int i; - - for (;;) { - if ((i = read(s, msg, sizeof msg)) < 0) { - printf("Server couldn't read message from client: %s\n", strerror(errno)); - break; - } - if (i == 0) - break; - rtems_task_wake_after(20); /* Simulate some processing delay */ - i = sprintf(reply, "Server received %d (%s)", i, msg); - if ((i = write(s, reply, i+1)) < 0) { - printf("Server couldn't write message to client: %s\n", strerror(errno)); - break; - } - } - if (close(s) < 0) - printf("Can't close worker task socket: %s\n", strerror(errno)); - printf("Worker task terminating.\n"); - rtems_task_exit(); -} - -/* - * Server Task - */ -static rtems_task serverTask(rtems_task_argument arg) -{ - int s, s1; - socklen_t addrlen; - struct sockaddr_in myAddr, farAddr; - rtems_task_priority myPriority; - - printf("Create socket.\n"); - s = socket(AF_INET, SOCK_STREAM, 0); - if (s < 0) - rtems_panic("Can't create socket: %s\n", strerror(errno)); - memset(&myAddr, 0, sizeof myAddr); - myAddr.sin_family = AF_INET; - myAddr.sin_port = htons(1234); - myAddr.sin_addr.s_addr = htonl(INADDR_ANY); - printf("Bind socket.\n"); - if (bind(s, (struct sockaddr *)&myAddr, sizeof myAddr) < 0) - rtems_panic("Can't bind socket: %s\n", strerror(errno)); - if (listen(s, 5) < 0) - printf("Can't listen on socket: %s\n", strerror(errno)); - rtems_task_set_priority(RTEMS_SELF, RTEMS_CURRENT_PRIORITY, &myPriority); - for(;;) { - addrlen = sizeof farAddr; - s1 = accept(s, (struct sockaddr *)&farAddr, &addrlen); - if (s1 < 0) - if (errno == ENXIO) - rtems_task_exit(); - else - rtems_panic("Can't accept connection: %s", strerror(errno)); - else - printf("ACCEPTED:%" PRIu32 "\n", ntohl(farAddr.sin_addr.s_addr)); - spawnTask(workerTask, myPriority, s1); - } -} - -/* - * The real part of the client - */ -static rtems_task clientWorker(int arg) -{ - int s; - struct sockaddr_in myAddr, farAddr; - char cbuf[50]; - int i; - - s = socket(AF_INET, SOCK_STREAM, 0); - if (s < 0) { - printf("Can't create client socket: %s\n", strerror(errno)); - return; - } - memset(&myAddr, 0, sizeof myAddr); - myAddr.sin_family = AF_INET; - myAddr.sin_port = htons(0); - myAddr.sin_addr.s_addr = htonl(INADDR_ANY); - if (bind(s, (struct sockaddr *)&myAddr, sizeof myAddr) < 0) { - printf("Can't bind socket: %s\n", strerror(errno)); - goto close; - } - memset(&farAddr, 0, sizeof farAddr); - farAddr.sin_family = AF_INET; - farAddr.sin_port = htons(1234); - farAddr.sin_addr.s_addr = htonl(INADDR_ANY); - printf("Connect to server.\n"); - if (connect(s, (struct sockaddr *)&farAddr, sizeof farAddr) < 0) { - printf("Can't connect to server: %s\n", strerror(errno)); - goto close; - } - rtems_task_wake_after(20); /* Simulate client delay */ - i = sprintf(cbuf, "Hi there, server (%d).", arg); - i++; /* Send the '\0', too */ - printf("Write %d-byte message to server.\n", i); - if (write(s, cbuf, i) < 0) { - printf("Can't write to server: %s\n", strerror(errno)); - goto close; - } - if ((i = read(s, cbuf, sizeof cbuf)) < 0) { - printf("Can't read from server: %s\n", strerror(errno)); - goto close; - } - printf("Read %d from server: %.*s\n", i, i, cbuf); - rtems_task_wake_after(20); /* Simulate client delay */ - close: - printf("Client closing connection.\n"); - if (close(s) < 0) - printf("Can't close client task socket: %s\n", strerror(errno)); -} - -/* - * Client Task - */ -static rtems_task clientTask(rtems_task_argument arg) -{ - clientWorker(arg); - printf("Client task terminating.\n"); - rtems_task_exit(); -} - -/* - * RTEMS Startup Task - */ -rtems_task -Init (rtems_task_argument ignored) -{ - rtems_print_printer_fprintf_putc(&rtems_test_printer); - - TEST_BEGIN(); - - printf("\"Network\" initializing!\n"); - rtems_bsdnet_initialize_network(); - printf("\"Network\" initialized!\n"); - - printf("Try running client with no server present.\n"); - printf("Should fail with `connection refused'.\n"); - clientWorker(0); - - printf("\nStart server.\n"); - spawnTask(serverTask, 150, 0); - - printf("\nTry running client with server present.\n"); - spawnTask(clientTask, 120, 1); - rtems_task_wake_after(500); - - printf("\nTry running two clients.\n"); - spawnTask(clientTask, 120, 2); - spawnTask(clientTask, 120, 3); - rtems_task_wake_after(500); - - printf("\nTry running three clients.\n"); - spawnTask(clientTask, 120, 4); - spawnTask(clientTask, 120, 5); - spawnTask(clientTask, 120, 6); - - rtems_task_wake_after(500); - TEST_END(); - exit( 0 ); -} diff --git a/testsuites/samples/loopback/loopback.scn b/testsuites/samples/loopback/loopback.scn deleted file mode 100644 index ec6207f315..0000000000 --- a/testsuites/samples/loopback/loopback.scn +++ /dev/null @@ -1,56 +0,0 @@ -"Network" initializing! -"Network" initialized! -Try running client with no server present. -Should fail with `connection refused'. -Connect to server. -Can't connect to server: Connection refused -Client closing connection. - -Start server. - -Try running client with server present. -Create socket. -Connect to server. -Bind socket. -Can't connect to server: Connection refused -Client closing connection. -Client task terminating. - -Try running two clients. -Connect to server. -Connect to server. -ACCEPTED:7F000001 -ACCEPTED:7F000001 -Write 22-byte message to server. -Write 22-byte message to server. -Read 43 from server: Server received 22 (Hi there, server (2).) -Read 43 from server: Server received 22 (Hi there, server (3).) -Client closing connection. -Client task terminating. -Worker task terminating. -Client closing connection. -Client task terminating. -Worker task terminating. - -Try running three clients. -Connect to server. -Connect to server. -Connect to server. -ACCEPTED:7F000001 -ACCEPTED:7F000001 -ACCEPTED:7F000001 -Write 22-byte message to server. -Write 22-byte message to server. -Write 22-byte message to server. -Read 43 from server: Server received 22 (Hi there, server (4).) -Read 43 from server: Server received 22 (Hi there, server (5).) -Read 43 from server: Server received 22 (Hi there, server (6).) -Client closing connection. -Client task terminating. -Worker task terminating. -Client closing connection. -Client task terminating. -Worker task terminating. -Client closing connection. -Client task terminating. -Worker task terminating. diff --git a/testsuites/samples/pppd/README b/testsuites/samples/pppd/README deleted file mode 100644 index 49fb2be770..0000000000 --- a/testsuites/samples/pppd/README +++ /dev/null @@ -1,11 +0,0 @@ -This is an example user application using pppd. It is built using -the RTEMS application Makefiles. The file Makefile-user should -be renamed to Makefile or the -f option given to make. The file -is renamed to avoid bootstrap -c removing it. - -The files ppp.conf and pppd.options are sample configuration files -that have successfully used to make ppp connections over a null -modem serial cable to a UNIX box. Please review the man pages -for either the ppp or pppd applications to ensure they are configured -correctly. - diff --git a/testsuites/samples/pppd/init.c b/testsuites/samples/pppd/init.c deleted file mode 100644 index 95e0d533f4..0000000000 --- a/testsuites/samples/pppd/init.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2012. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include -#include - -#define CONFIGURE_INIT -#include "system.h" - -#include -#include -#include -#include "netconfig.h" -#include - -const char rtems_test_name[] = "PPPD"; - -static void notification(int fd, int seconds_remaining, void *arg) -{ - printf( - "Press any key to start pppd (%is remaining)\n", - seconds_remaining - ); -} - -rtems_task Init(rtems_task_argument argument) -{ - rtems_status_code status; - - rtems_print_printer_fprintf_putc(&rtems_test_printer); - - TEST_BEGIN(); - - status = rtems_shell_wait_for_input( - STDIN_FILENO, - 10, - notification, - NULL - ); - if (status != RTEMS_SUCCESSFUL) { - TEST_END(); - exit( 0 ); - } - - /* initialize network */ - rtems_bsdnet_initialize_network(); - rtems_pppd_initialize(); - pppdapp_initialize(); - rtems_task_exit(); -} diff --git a/testsuites/samples/pppd/netconfig.h b/testsuites/samples/pppd/netconfig.h deleted file mode 100644 index f1d6494864..0000000000 --- a/testsuites/samples/pppd/netconfig.h +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef NETCONFIG_H_ -#define NETCONFIG_H_ - -#include -#include - -/* Default network interface */ -static struct rtems_bsdnet_ifconfig netdriver_config = { - "ppp0", /* name */ - rtems_ppp_driver_attach, /* attach function */ - NULL, /* No more interfaces */ - NULL, /* IP address */ - NULL, /* IP net mask */ - NULL, /* Driver supplies hardware address */ - 0 /* Use default driver parameters */ -}; - -/* Network configuration */ -struct rtems_bsdnet_config rtems_bsdnet_config = { - &netdriver_config, - NULL, - 30, /* Default network task priority */ - (256UL *1024UL), /* Default mbuf capacity */ - (512UL *1024UL), /* Default mbuf cluster capacity */ - 0, /* Host name */ - 0, /* Domain name */ - 0, /* Gateway */ - 0, /* Log host */ - { 0 }, /* Name server(s) */ - { 0 }, /* NTP server(s) */ -}; - -#endif diff --git a/testsuites/samples/pppd/ppp.conf b/testsuites/samples/pppd/ppp.conf deleted file mode 100644 index 094b1946a8..0000000000 --- a/testsuites/samples/pppd/ppp.conf +++ /dev/null @@ -1,27 +0,0 @@ - -# -# Example configuration file for setting up a ppp server -# using a null-modem serial cable: -# -# Tested using ppp on OpenBSD 2.9 -# - just follow instructions in man page for accepting -# ppp connections over the serial port -# - if pap and/or chap is enabled, you must have a ppp.secret -# file which will be used for user authentication -# - found useful to turn on syslog for ppp -# - -default: - set log Phase Chat LQM LCP IPCP CCP command - set device /dev/cua00 - set speed 57600 - set ctsrts on - set dial "" - -openbsd-server: - set timeout 0 - set ifaddr 192.168.2.100 192.168.2.123 - enable dns - allow users - enable chap - enable pap diff --git a/testsuites/samples/pppd/pppd.options b/testsuites/samples/pppd/pppd.options deleted file mode 100644 index c0706e6ec5..0000000000 --- a/testsuites/samples/pppd/pppd.options +++ /dev/null @@ -1,9 +0,0 @@ -/dev/tty00 -57600 -crtscts -passive -local -noauth -debug -persist -192.168.2.222:192.168.2.111 diff --git a/testsuites/samples/pppd/pppdapp.c b/testsuites/samples/pppd/pppdapp.c deleted file mode 100644 index bf8cd525cd..0000000000 --- a/testsuites/samples/pppd/pppdapp.c +++ /dev/null @@ -1,152 +0,0 @@ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - - -#include - -#include -#include -#include "system.h" - - -/* define global variables */ -static unsigned int pppdapp_linkcount = 0; -static rtems_id pppdapp_taskid; - - -static void pppdapp_linkup_hook(void) -{ - pppdapp_linkcount++; - printf("PPP LINK UP [%d]\n", pppdapp_linkcount); -} - -static void pppdapp_linkdown_hook(void) -{ - printf("PPP LINK DOWN [%d]\n", pppdapp_linkcount); -} - -static void pppdapp_ipup_hook(void) -{ - /* send ipup signal to pppdapp task */ - rtems_event_send(pppdapp_taskid, RTEMS_EVENT_10); -} - -static void pppdapp_ipdown_hook(void) -{ - /* send ip down signal to pppdapp task */ - rtems_event_send(pppdapp_taskid, RTEMS_EVENT_11); -} - -static void pppdapp_setup(void) -{ - const char *pUser = "oscar"; - const char *pPassword = "goldman"; - -#undef USE_MODEM -#ifdef USE_MODEM - const char *pTelephone = "5551234"; - const char *pInitScript = "TIMEOUT@5@@AT@@OK@"; - const char *pConnectScript = "TIMEOUT@90@@ATDT%s@CONNECT@@name:@%s@word:@%s@"; - const char *pDisconnectScript = "TIMEOUT@5@@ATH0@@OK@"; - char pConnect[128]; - - /* set the connect string */ - sprintf(pConnect, pConnectScript, pTelephone, pUser, pPassword); - - /* set pppd options for modem */ - rtems_pppd_set_option("/dev/ttyS2", NULL); - rtems_pppd_set_option("57600", NULL); - rtems_pppd_set_option("crtscts", NULL); - rtems_pppd_set_option("modem", NULL); - rtems_pppd_set_option("noauth", NULL); - rtems_pppd_set_option("debug", NULL); - rtems_pppd_set_option("init", pInitScript); - rtems_pppd_set_option("connect", pConnect); - rtems_pppd_set_option("disconnect", pDisconnectScript); -#else - /* set pppd options for null modem direct link serial cable */ - rtems_pppd_set_option("/dev/ttyS1", NULL); - rtems_pppd_set_option("57600", NULL); - rtems_pppd_set_option("crtscts", NULL); - rtems_pppd_set_option("local", NULL); - rtems_pppd_set_option("noauth", NULL); - rtems_pppd_set_option("debug", NULL); - rtems_pppd_set_option("user", pUser); - rtems_pppd_set_option("password", pPassword); -#endif - - /* set up pppd hooks */ - rtems_pppd_set_hook(RTEMS_PPPD_LINKUP_HOOK, pppdapp_linkup_hook); - rtems_pppd_set_hook(RTEMS_PPPD_LINKDOWN_HOOK, pppdapp_linkdown_hook); - rtems_pppd_set_hook(RTEMS_PPPD_IPUP_HOOK, pppdapp_ipup_hook); - rtems_pppd_set_hook(RTEMS_PPPD_IPDOWN_HOOK, pppdapp_ipdown_hook); -} - -static rtems_task pppdapp(rtems_task_argument arg) -{ - rtems_status_code sc = RTEMS_SUCCESSFUL; - rtems_interval tickspersecond = 0; - rtems_option options; - rtems_event_set in; - rtems_event_set out; - - /* initialize ticks per second */ - tickspersecond = rtems_clock_get_ticks_per_second(); - if ( tickspersecond == 0 ) { - /* ensure value is greater than zero */ - tickspersecond = 100; - } - - /* initiate connection */ - pppdapp_setup(); - rtems_pppd_connect(); - - /* enter processing loop */ - in = (RTEMS_EVENT_10 | RTEMS_EVENT_11); - options = (RTEMS_EVENT_ANY | RTEMS_WAIT); - while ( sc == RTEMS_SUCCESSFUL ) { - /* wait for the next event */ - sc = rtems_event_receive(in, options, RTEMS_NO_TIMEOUT, &out); - if ( sc == RTEMS_SUCCESSFUL ) { - /* determine which event was sent */ - if ( out & RTEMS_EVENT_10 ) { - /* ip up recived */ - /* call disconnect function */ - rtems_pppd_disconnect(); - } - if ( out & RTEMS_EVENT_11 ) { - /* ip down recived */ - /* sleep 10 seconds and call connect function */ - rtems_task_wake_after(10*tickspersecond); - rtems_pppd_connect(); - } - } - } - - /* terminate myself */ - rtems_task_exit(); -} - -int pppdapp_initialize(void) -{ - int iReturn = (int)-1; - rtems_status_code status; - rtems_name taskName; - - taskName = rtems_build_name( 'p', 'a', 'p', 'p' ); - status = rtems_task_create(taskName, - CONFIGURE_INIT_TASK_PRIORITY, - CONFIGURE_INIT_TASK_STACK_SIZE, - CONFIGURE_INIT_TASK_INITIAL_MODES, - RTEMS_DEFAULT_ATTRIBUTES, - &pppdapp_taskid); - if ( status == RTEMS_SUCCESSFUL ) { - status = rtems_task_start(pppdapp_taskid, pppdapp, 0); - if ( status == RTEMS_SUCCESSFUL ) { - iReturn = (int)0; - } - } - - return ( iReturn ); -} diff --git a/testsuites/samples/pppd/system.h b/testsuites/samples/pppd/system.h deleted file mode 100644 index c9972fe9b3..0000000000 --- a/testsuites/samples/pppd/system.h +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef SYSTEM_H -#define SYSTEM_H - -#include -#include -#include -#include - -/* functions */ -extern rtems_task Init(rtems_task_argument argument); -extern int pppdapp_initialize(void); - -#include - -#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER -#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER - -#ifndef TTY1_DRIVER_TABLE_ENTRY - #define TTY1_DRIVER_TABLE_ENTRY NULL_DRIVER_TABLE_ENTRY -#endif -#ifndef TTY2_DRIVER_TABLE_ENTRY - #define TTY2_DRIVER_TABLE_ENTRY NULL_DRIVER_TABLE_ENTRY -#endif - -#define CONFIGURE_APPLICATION_EXTRA_DRIVERS \ - TTY1_DRIVER_TABLE_ENTRY, TTY2_DRIVER_TABLE_ENTRY - -#define CONFIGURE_RTEMS_INIT_TASKS_TABLE - -#define CONFIGURE_MAXIMUM_FILE_DESCRIPTORS 8 - -#define CONFIGURE_UNIFIED_WORK_AREAS - -#define CONFIGURE_UNLIMITED_OBJECTS - -#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_TASK_ATTRIBUTES RTEMS_FLOATING_POINT - -#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION - -#include - -#endif -- cgit v1.2.3