forked from Imagelibrary/rtems
32 lines
582 B
C
32 lines
582 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"
|
|
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);
|
|
}
|