source: rtems/testsuites/samples/pppd/init.c @ 3c8eda7

4.11
Last change on this file since 3c8eda7 was 56f1fbe, checked in by Ralf Corsépius <ralf.corsepius@…>, on Feb 22, 2012 at 8:16:07 AM

2012-02-22 Ralf Corsépius <ralf.corsepius@…>

  • pppd/system.h: Add pppdapp_initialize.
  • pppd/init.c: Remove pppdapp_initialize.
  • Property mode set to 100644
File size: 545 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"
17#endif
18
19rtems_task Init(rtems_task_argument argument)
20{
21#if BSP_SMALL_MEMORY
22  printf("NO NETWORKING. MEMORY TOO SMALL");
23#else
24  /* initialize network */
25  rtems_bsdnet_initialize_network();
26  rtems_pppd_initialize();
27  pppdapp_initialize();
28#endif
29  rtems_task_delete(RTEMS_SELF);
30}
Note: See TracBrowser for help on using the repository browser.