summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/pppd/init.c
blob: cf0d134710d52eec5e860cd5061613efd10a2a2d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define CONFIGURE_INIT
#include "system.h"

#if !BSP_SMALL_MEMORY
#include <rtems/rtems_bsdnet.h>
#include <rtems/rtemspppd.h>
#include "netconfig.h"
extern int pppdapp_initialize(void);
#endif

rtems_task Init(rtems_task_argument argument)
{
#if BSP_SMALL_MEMORY
  printf("NO NETWORKING. MEMORY TOO SMALL");
#else
  /* initialize network */
  rtems_bsdnet_initialize_network();
  rtems_pppd_initialize();
  pppdapp_initialize();
#endif
  rtems_task_delete(RTEMS_SELF);
}