source: rtems/testsuites/samples/pppd/init.c @ e313551

4.115
Last change on this file since e313551 was e313551, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/22/11 at 10:58:44

Add HAVE_CONFIG_H.

  • Property mode set to 100644
File size: 582 bytes
Line 
1#ifdef HAVE_CONFIG_H
2#include "config.h"
3#endif
4
5
6#include <stdio.h>
7#include <stdlib.h>
8#include <string.h>
9
10#define CONFIGURE_INIT
11#include "system.h"
12
13#if !BSP_SMALL_MEMORY
14#include <rtems/rtems_bsdnet.h>
15#include <rtems/rtemspppd.h>
16#include "netconfig.h"
17extern int pppdapp_initialize(void);
18#endif
19
20rtems_task Init(rtems_task_argument argument)
21{
22#if BSP_SMALL_MEMORY
23  printf("NO NETWORKING. MEMORY TOO SMALL");
24#else
25  /* initialize network */
26  rtems_bsdnet_initialize_network();
27  rtems_pppd_initialize();
28  pppdapp_initialize();
29#endif
30  rtems_task_delete(RTEMS_SELF);
31}
Note: See TracBrowser for help on using the repository browser.