source: rtems/cpukit/libmisc/dummy/dummy.c @ aa4a3f1

4.104.114.9
Last change on this file since aa4a3f1 was aa4a3f1, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 20, 2008 at 10:24:09 PM

2008-08-20 Joel Sherrill <joel.sherrill@…>

  • libmisc/dummy/dummy.c: Add missing initializers.
  • score/src/threadinitialize.c: Change type of loop counter.
  • Property mode set to 100644
File size: 2.3 KB
Line 
1/*
2 *  Dummy configuration file
3 *
4 *  COPYRIGHT (c) 1989-2008.
5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *  $Id$
12 */
13
14#ifdef HAVE_CONFIG_H
15#include "config.h"
16#endif
17
18#include <rtems.h>
19
20int main( int, char **, char **);
21
22/* configuration information */
23
24/* This is enough to get a basic main() up. */
25#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
26#define CONFIGURE_MAXIMUM_TASKS 10
27#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
28#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20
29#define CONFIGURE_INIT_TASK_ENTRY_POINT   (void *)main
30
31/* Include basic device drivers needed to call delays */
32#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
33#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
34
35#define CONFIGURE_INIT
36
37#include <rtems/confdefs.h>
38
39/* Loopback Network Configuration */
40#if defined(RTEMS_NETWORKING)
41  #include <rtems/rtems_bsdnet.h>
42  #include <sys/socket.h>
43  #include <netinet/in.h>
44
45  extern int rtems_bsdnet_loopattach(struct rtems_bsdnet_ifconfig *, int);
46
47  static struct rtems_bsdnet_ifconfig loopback_config = {
48      "lo0",                     /* name */
49      rtems_bsdnet_loopattach,   /* attach function */
50      NULL,                      /* link to next interface */
51      "127.0.0.1",               /* IP address */
52      "255.0.0.0",               /* IP net mask */
53  };
54
55  struct rtems_bsdnet_config rtems_bsdnet_config = {
56      &loopback_config,       /* Network interface */
57      NULL,                   /* Use fixed network configuration */
58      0,                      /* Default network task priority */
59      0,                      /* Default mbuf capacity */
60      0,                      /* Default mbuf cluster capacity */
61      "testSystem",           /* Host name */
62      "nowhere.com",          /* Domain name */
63      "127.0.0.1",            /* Gateway */
64      "127.0.0.1",            /* Log host */
65      {"127.0.0.1" },         /* Name server(s) */
66      {"127.0.0.1" },         /* NTP server(s) */
67      1,                      /* sb_efficiency */
68      0,                      /* udp_tx_buf_size */
69      0,                      /* udp_rx_buf_size */
70      0,                      /* tcp_tx_buf_size */
71      0                       /* tcp_rx_buf_size */
72  };
73#endif
74
Note: See TracBrowser for help on using the repository browser.