diff options
Diffstat (limited to 'cpukit/pppd/example/init.c')
-rw-r--r-- | cpukit/pppd/example/init.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cpukit/pppd/example/init.c b/cpukit/pppd/example/init.c new file mode 100644 index 0000000000..f35d195bf2 --- /dev/null +++ b/cpukit/pppd/example/init.c @@ -0,0 +1,24 @@ + +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <rtems/rtems_bsdnet.h> +#include <rtemspppd.h> + +#define CONFIGURE_INIT +#include "system.h" +#include "netconfig.h" + + +extern int pppdapp_initialize(void); + + +rtems_task Init(rtems_task_argument argument) +{ + /* initialize network */ + rtems_bsdnet_initialize_network(); + rtems_pppd_initialize(); + pppdapp_initialize(); + + rtems_task_delete(RTEMS_SELF); +} |