source: rtems/testsuites/samples/pppd/init.c @ 9391f6d

4.115
Last change on this file since 9391f6d was 9391f6d, checked in by Sebastian Huber <sebastian.huber@…>, on 03/10/14 at 15:31:43

tests/samples: Use <rtems/test.h>

  • 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.com/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.