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

4.11
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on Mar 20, 2014 at 9:10:47 PM

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 859 bytes
Line 
1/*
2 *  COPYRIGHT (c) 1989-2012.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.org/license/LICENSE.
8 */
9
10#ifdef HAVE_CONFIG_H
11#include "config.h"
12#endif
13
14#include <stdio.h>
15#include <stdlib.h>
16#include <string.h>
17
18#define CONFIGURE_INIT
19#include "system.h"
20
21#if !BSP_SMALL_MEMORY
22#include <rtems/rtems_bsdnet.h>
23#include <rtems/rtemspppd.h>
24#include "netconfig.h"
25#endif
26
27const char rtems_test_name[] = "PPPD";
28
29rtems_task Init(rtems_task_argument argument)
30{
31#if BSP_SMALL_MEMORY
32  printf("NO NETWORKING. MEMORY TOO SMALL");
33#else
34  rtems_test_begin();
35
36  /* initialize network */
37  rtems_bsdnet_initialize_network();
38  rtems_pppd_initialize();
39  pppdapp_initialize();
40#endif
41  rtems_task_delete(RTEMS_SELF);
42}
Note: See TracBrowser for help on using the repository browser.