Files
rtems/testsuites/samples/pppd/init.c
Chris Johns c0ec0d82d3 2009-04-28 Chris Johns <chrisj@rtems.org>
* fileio/init.c, fileio/system.h, iostream/init.cc,
        loopback/init.c, pppd/init.c, pppd/pppdapp.c: Do not build if
        BSP_SMALL_MEMORY is defined. Remove this code once a better way is
        supported by the build system.
2009-04-28 05:04:11 +00:00

28 lines
533 B
C

#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);
}