Files
rtems/testsuites/samples/pppd/init.c
Ralf Corsépius 56f1fbed85 2012-02-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* pppd/system.h: Add pppdapp_initialize.
	* pppd/init.c: Remove pppdapp_initialize.
2012-02-22 09:33:18 +01:00

31 lines
545 B
C

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#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"
#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);
}