Changeset 0417fe3 in network-demos


Ignore:
Timestamp:
May 12, 2009, 7:59:54 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master, network-demos-4-10-branch
Children:
5d2c26f
Parents:
af95f31
Message:

2009-05-12 Joel Sherrill <joel.sherrill@…>

  • init.c: Now build with libbsdport.
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • dnstest/ChangeLog

    raf95f31 r0417fe3  
     12009-05-12      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * init.c: Now build with libbsdport.
     4
    152007-09-25      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • dnstest/init.c

    raf95f31 r0417fe3  
    1717
    1818#include <bsp.h>
     19
     20#include <stdio.h>
     21#include <stdlib.h>
     22#include <rtems/rtems_bsdnet.h>
     23#include "../networkconfig.h"
     24
     25/*
     26 * RTEMS Startup Task
     27 */
     28rtems_task
     29Init (rtems_task_argument ignored)
     30{
     31        void testDNS(void);
     32
     33        rtems_bsdnet_initialize_network ();
     34        testDNS ();
     35        exit (0);
     36}
    1937
    2038#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     
    4260#include <rtems/confdefs.h>
    4361
    44 #include <stdio.h>
    45 #include <stdlib.h>
    46 #include <rtems/rtems_bsdnet.h>
    47 #include "../networkconfig.h"
    48 
    49 /*
    50  * RTEMS Startup Task
    51  */
    52 rtems_task
    53 Init (rtems_task_argument ignored)
    54 {
    55         void testDNS(void);
    56 
    57         rtems_bsdnet_initialize_network ();
    58         testDNS ();
    59         exit (0);
    60 }
    61 
  • mcast/ChangeLog

    raf95f31 r0417fe3  
     12009-05-12      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * init.c: Now build with libbsdport.
     4
    152008-02-05      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • mcast/init.c

    raf95f31 r0417fe3  
    1717
    1818#include <bsp.h>
    19 
    20 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    21 #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    22 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    23 #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20
    24 #define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
    25 
    26 #define CONFIGURE_EXECUTIVE_RAM_SIZE (512*1024)
    27 #define CONFIGURE_MAXIMUM_SEMAPHORES 20
    28 #define CONFIGURE_MAXIMUM_TASKS      20
    29 
    30 #define CONFIGURE_MICROSECONDS_PER_TICK 10000
    31 
    32 #define CONFIGURE_INIT_TASK_STACK_SIZE (10*1024)
    33 #define CONFIGURE_INIT_TASK_PRIORITY   120
    34 #define CONFIGURE_INIT_TASK_INITIAL_MODES (RTEMS_PREEMPT | \
    35                                            RTEMS_NO_TIMESLICE | \
    36                                            RTEMS_NO_ASR | \
    37                                            RTEMS_INTERRUPT_LEVEL(0))
    38 
    39 #define CONFIGURE_INIT
    40 rtems_task Init (rtems_task_argument argument);
    41 
    42 #include <rtems/confdefs.h>
    4319
    4420#include <stdio.h>
     
    8763  exit (0);
    8864}
     65
     66#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     67#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
     68#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
     69#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20
     70#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
     71
     72#define CONFIGURE_EXECUTIVE_RAM_SIZE (512*1024)
     73#define CONFIGURE_MAXIMUM_SEMAPHORES 20
     74#define CONFIGURE_MAXIMUM_TASKS      20
     75
     76#define CONFIGURE_MICROSECONDS_PER_TICK 10000
     77
     78#define CONFIGURE_INIT_TASK_STACK_SIZE (10*1024)
     79#define CONFIGURE_INIT_TASK_PRIORITY   120
     80#define CONFIGURE_INIT_TASK_INITIAL_MODES (RTEMS_PREEMPT | \
     81                                           RTEMS_NO_TIMESLICE | \
     82                                           RTEMS_NO_ASR | \
     83                                           RTEMS_INTERRUPT_LEVEL(0))
     84
     85#define CONFIGURE_INIT
     86rtems_task Init (rtems_task_argument argument);
     87
     88#include <rtems/confdefs.h>
     89
  • netdemo/ChangeLog

    raf95f31 r0417fe3  
     12009-05-12      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * init.c: Now build with libbsdport.
     4
    152007-09-25      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • netdemo/init.c

    raf95f31 r0417fe3  
    1717
    1818#include <bsp.h>
     19
     20#include <stdio.h>
     21#include <stdlib.h>
     22#include <rtems/rtems_bsdnet.h>
     23#include "../networkconfig.h"
     24
     25/*
     26 * RTEMS Startup Task
     27 */
     28rtems_task
     29Init (rtems_task_argument ignored)
     30{
     31  int doSocket(void);
     32
     33  printk( "Initialize network\n" );
     34  rtems_bsdnet_initialize_network ();
     35  printk( "Network initialized\n" );
     36  rtems_bsdnet_show_inet_routes ();
     37  printk( "Initiating test\n" );
     38  doSocket ();
     39  exit (0);
     40}
    1941
    2042#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     
    4264#include <rtems/confdefs.h>
    4365
    44 #include <stdio.h>
    45 #include <stdlib.h>
    46 #include <rtems/rtems_bsdnet.h>
    47 #include "../networkconfig.h"
    48 
    49 /*
    50  * RTEMS Startup Task
    51  */
    52 rtems_task
    53 Init (rtems_task_argument ignored)
    54 {
    55   int doSocket(void);
    56 
    57   printk( "Initialize network\n" );
    58   rtems_bsdnet_initialize_network ();
    59   printk( "Network initialized\n" );
    60   rtems_bsdnet_show_inet_routes ();
    61   printk( "Initiating test\n" );
    62   doSocket ();
    63   exit (0);
    64 }
  • nfsClientTest/ChangeLog

    raf95f31 r0417fe3  
     12009-05-12      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * init.c: Now build with libbsdport.
     4
    152007-11-09      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • nfsClientTest/init.c

    raf95f31 r0417fe3  
    66 */
    77
    8 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    9 #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    10 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    11 #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS        20
    12 #define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
    13 
    14 #define CONFIGURE_MEMORY_OVERHEAD       256
    15 #define CONFIGURE_MESSAGE_BUFFER_MEMORY 32 * 1024
    16 #define CONFIGURE_MAXIMUM_SEMAPHORES    40
    17 #define CONFIGURE_MAXIMUM_TASKS         20
    18 #define CONFIGURE_MAXIMUM_MESSAGE_QUEUES        20
    19 
    20 #define CONFIGURE_MICROSECONDS_PER_TICK 1000
    21 
    22 #define CONFIGURE_INIT_TASK_STACK_SIZE  (64*1024)
    23 #define CONFIGURE_INIT_TASK_PRIORITY    120
    24 #define CONFIGURE_INIT_TASK_ATTRIBUTES    RTEMS_FLOATING_POINT
    25 #define CONFIGURE_INIT_TASK_INITIAL_MODES (RTEMS_PREEMPT | \
    26                                            RTEMS_NO_TIMESLICE | \
    27                                            RTEMS_NO_ASR | \
    28                                            RTEMS_INTERRUPT_LEVEL(0))
    29 
    30 #define CONFIGURE_MAXIMUM_DRIVERS 10
    31 #define CONFIGURE_INIT
    32 
    33 #include <rtems.h>
    34 #include <librtemsNfs.h>
    35 
    36 /* functions */
    37 
    38 rtems_task Init(
    39   rtems_task_argument argument
    40 );
    41 
    42 /* configuration information */
    43 
    44 #include <rtems/confdefs.h>
    458#include <bsp.h>
    469
     
    4811#include <time.h>
    4912
    50 #include <rtems/confdefs.h>
    5113#include <stdio.h>
    5214#include <rtems/rtems_bsdnet.h>
     
    139101}
    140102
     103#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     104#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
     105#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
     106#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS        20
     107#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
     108
     109#define CONFIGURE_MEMORY_OVERHEAD       256
     110#define CONFIGURE_MESSAGE_BUFFER_MEMORY 32 * 1024
     111#define CONFIGURE_MAXIMUM_SEMAPHORES    40
     112#define CONFIGURE_MAXIMUM_TASKS         20
     113#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES        20
     114
     115#define CONFIGURE_MICROSECONDS_PER_TICK 1000
     116
     117#define CONFIGURE_INIT_TASK_STACK_SIZE  (64*1024)
     118#define CONFIGURE_INIT_TASK_PRIORITY    120
     119#define CONFIGURE_INIT_TASK_ATTRIBUTES    RTEMS_FLOATING_POINT
     120#define CONFIGURE_INIT_TASK_INITIAL_MODES (RTEMS_PREEMPT | \
     121                                           RTEMS_NO_TIMESLICE | \
     122                                           RTEMS_NO_ASR | \
     123                                           RTEMS_INTERRUPT_LEVEL(0))
     124
     125#define CONFIGURE_MAXIMUM_DRIVERS 10
     126#define CONFIGURE_INIT
     127
     128#include <rtems.h>
     129#include <librtemsNfs.h>
     130
     131/* functions */
     132
     133rtems_task Init(
     134  rtems_task_argument argument
     135);
     136
     137/* configuration information */
     138
     139#include <rtems/confdefs.h>
  • ntp/ChangeLog

    raf95f31 r0417fe3  
     12009-05-12      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * init.c: Now build with libbsdport.
     4
    152007-09-25      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • ntp/init.c

    raf95f31 r0417fe3  
    1717
    1818#include <bsp.h>
    19 
    20 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    21 #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    22 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    23 #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20
    24 #define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
    25 
    26 #define CONFIGURE_EXECUTIVE_RAM_SIZE    (512*1024)
    27 #define CONFIGURE_MAXIMUM_SEMAPHORES    20
    28 #define CONFIGURE_MAXIMUM_TASKS         20
    29 
    30 #define CONFIGURE_MICROSECONDS_PER_TICK 10000
    31 
    32 #define CONFIGURE_INIT_TASK_STACK_SIZE  (10*1024)
    33 #define CONFIGURE_INIT_TASK_PRIORITY    120
    34 #define CONFIGURE_INIT_TASK_INITIAL_MODES (RTEMS_PREEMPT | \
    35                                            RTEMS_NO_TIMESLICE | \
    36                                            RTEMS_NO_ASR | \
    37                                            RTEMS_INTERRUPT_LEVEL(0))
    38 
    39 #define CONFIGURE_INIT
    40 rtems_task Init (rtems_task_argument argument);
    41 
    42 #include <rtems/confdefs.h>
    4319
    4420#include <stdio.h>
     
    8359        exit (0);
    8460}
     61
     62#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     63#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
     64#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
     65#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20
     66#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
     67
     68#define CONFIGURE_EXECUTIVE_RAM_SIZE    (512*1024)
     69#define CONFIGURE_MAXIMUM_SEMAPHORES    20
     70#define CONFIGURE_MAXIMUM_TASKS         20
     71
     72#define CONFIGURE_MICROSECONDS_PER_TICK 10000
     73
     74#define CONFIGURE_INIT_TASK_STACK_SIZE  (10*1024)
     75#define CONFIGURE_INIT_TASK_PRIORITY    120
     76#define CONFIGURE_INIT_TASK_INITIAL_MODES (RTEMS_PREEMPT | \
     77                                           RTEMS_NO_TIMESLICE | \
     78                                           RTEMS_NO_ASR | \
     79                                           RTEMS_INTERRUPT_LEVEL(0))
     80
     81#define CONFIGURE_INIT
     82rtems_task Init (rtems_task_argument argument);
     83
     84#include <rtems/confdefs.h>
     85
  • rpc_demo/ChangeLog

    raf95f31 r0417fe3  
     12009-05-12      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * init.c: Now build with libbsdport.
     4
    152008-09-17      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • rpc_demo/init.c

    raf95f31 r0417fe3  
    88#include <stdio.h>
    99#include <stdlib.h>
    10 
    11 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    12 #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20
    13 #define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
    14 
    15 #define CONFIGURE_STACK_CHECKER_ENABLED
    16 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    17 #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    18 #define CONFIGURE_MAXIMUM_USER_EXTENSIONS   2
    19 #define CONFIGURE_MAXIMUM_SEMAPHORES        20
    20 #define CONFIGURE_MAXIMUM_TASKS             12
    21 
    22 #define CONFIGURE_MICROSECONDS_PER_TICK       20000
    23 
    24 #define CONFIGURE_INIT_TASK_PRIORITY    99
    25 #define CONFIGURE_INIT_TASK_STACK_SIZE  (16*1024)
    26 #define CONFIGURE_INIT
    27 
    28 rtems_task Init(rtems_task_argument argument);
    29 
    30 #include <rtems/confdefs.h>
    3110
    3211/*
     
    7049void pmap_set () { ; }
    7150void pmap_unset () { ; }
     51
     52#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
     53#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20
     54#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
     55
     56#define CONFIGURE_STACK_CHECKER_ENABLED
     57#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     58#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
     59#define CONFIGURE_MAXIMUM_USER_EXTENSIONS   2
     60#define CONFIGURE_MAXIMUM_SEMAPHORES        20
     61#define CONFIGURE_MAXIMUM_TASKS             12
     62
     63#define CONFIGURE_MICROSECONDS_PER_TICK       20000
     64
     65#define CONFIGURE_INIT_TASK_PRIORITY    99
     66#define CONFIGURE_INIT_TASK_STACK_SIZE  (16*1024)
     67#define CONFIGURE_INIT
     68
     69rtems_task Init(rtems_task_argument argument);
     70
     71#include <rtems/confdefs.h>
     72
  • select/ChangeLog

    raf95f31 r0417fe3  
     12009-05-12      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * init.c: Now build with libbsdport.
     4
    152007-09-25      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • select/init.c

    raf95f31 r0417fe3  
    1717
    1818#include <bsp.h>
     19
     20#include <stdio.h>
     21#include <stdlib.h>
     22#include <rtems/rtems_bsdnet.h>
     23#include "../networkconfig.h"
     24
     25/*
     26 * RTEMS Startup Task
     27 */
     28rtems_task
     29Init (rtems_task_argument ignored)
     30{
     31        int doSocket(void);
     32
     33        rtems_bsdnet_initialize_network ();
     34        doSocket ();
     35        exit (0);
     36}
    1937
    2038#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     
    4260#include <rtems/confdefs.h>
    4361
    44 #include <stdio.h>
    45 #include <stdlib.h>
    46 #include <rtems/rtems_bsdnet.h>
    47 #include "../networkconfig.h"
    48 
    49 /*
    50  * RTEMS Startup Task
    51  */
    52 rtems_task
    53 Init (rtems_task_argument ignored)
    54 {
    55         int doSocket(void);
    56 
    57         rtems_bsdnet_initialize_network ();
    58         doSocket ();
    59         exit (0);
    60 }
  • tftpTest/ChangeLog

    raf95f31 r0417fe3  
     12009-05-12      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * init.c: Now build with libbsdport.
     4
    152007-09-25      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • tftpTest/init.c

    raf95f31 r0417fe3  
    1818#include <bsp.h>
    1919#include <rtems/tftp.h>
    20 
    21 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    22 #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    23 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    24 #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20
    25 #define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
    26 
    27 #define CONFIGURE_EXECUTIVE_RAM_SIZE    (512*1024)
    28 #define CONFIGURE_MAXIMUM_SEMAPHORES    20
    29 #define CONFIGURE_MAXIMUM_TASKS         20
    30 
    31 #define CONFIGURE_MICROSECONDS_PER_TICK 10000
    32 
    33 #define CONFIGURE_INIT_TASK_STACK_SIZE  (10*1024)
    34 #define CONFIGURE_INIT_TASK_PRIORITY    100
    35 #define CONFIGURE_INIT_TASK_INITIAL_MODES (RTEMS_PREEMPT | \
    36                                            RTEMS_NO_TIMESLICE | \
    37                                            RTEMS_NO_ASR | \
    38                                            RTEMS_INTERRUPT_LEVEL(0))
    39 
    40 #define CONFIGURE_INIT
    41 rtems_task Init (rtems_task_argument argument);
    42 
    43 #include <rtems/confdefs.h>
    4420
    4521#include <stdio.h>
     
    6945        exit (0);
    7046}
     47
     48#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     49#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
     50#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
     51#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20
     52#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
     53
     54#define CONFIGURE_EXECUTIVE_RAM_SIZE    (512*1024)
     55#define CONFIGURE_MAXIMUM_SEMAPHORES    20
     56#define CONFIGURE_MAXIMUM_TASKS         20
     57
     58#define CONFIGURE_MICROSECONDS_PER_TICK 10000
     59
     60#define CONFIGURE_INIT_TASK_STACK_SIZE  (10*1024)
     61#define CONFIGURE_INIT_TASK_PRIORITY    100
     62#define CONFIGURE_INIT_TASK_INITIAL_MODES (RTEMS_PREEMPT | \
     63                                           RTEMS_NO_TIMESLICE | \
     64                                           RTEMS_NO_ASR | \
     65                                           RTEMS_INTERRUPT_LEVEL(0))
     66
     67#define CONFIGURE_INIT
     68rtems_task Init (rtems_task_argument argument);
     69
     70#include <rtems/confdefs.h>
     71
  • ttcp/ChangeLog

    raf95f31 r0417fe3  
     12009-05-12      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * init.c: Now build with libbsdport.
     4
    152008-08-21      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • ttcp/init.c

    raf95f31 r0417fe3  
    1717
    1818#include <bsp.h>
     19
     20#include <stdio.h>
     21#include <stdlib.h>
     22#include <rtems/rtems_bsdnet.h>
     23#include "../networkconfig.h"
     24
     25void test_network (void);
     26
     27/*
     28 * RTEMS Startup Task
     29 */
     30rtems_task
     31Init (rtems_task_argument ignored)
     32{
     33        rtems_bsdnet_initialize_network ();
     34        test_network ();
     35        exit (0);
     36}
    1937
    2038#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     
    4260#include <rtems/confdefs.h>
    4361
    44 #include <stdio.h>
    45 #include <stdlib.h>
    46 #include <rtems/rtems_bsdnet.h>
    47 #include "../networkconfig.h"
    48 
    49 void test_network (void);
    50 
    51 /*
    52  * RTEMS Startup Task
    53  */
    54 rtems_task
    55 Init (rtems_task_argument ignored)
    56 {
    57         rtems_bsdnet_initialize_network ();
    58         test_network ();
    59         exit (0);
    60 }
Note: See TracChangeset for help on using the changeset viewer.