rtems_task Init(rtems_task_argument argument) { #if BSP_SMALL_MEMORY printf("NO NETWORKING. MEMORY TOO SMALL"); #else rtems_test_begin(); /* initialize network */ rtems_bsdnet_initialize_network(); rtems_pppd_initialize(); pppdapp_initialize(); #endif rtems_task_delete(RTEMS_SELF); }
rtems_task Init(rtems_task_argument argument) { rtems_status_code status; rtems_test_begin(); status = rtems_shell_wait_for_input( STDIN_FILENO, 10, notification, NULL ); if (status != RTEMS_SUCCESSFUL) { rtems_test_end(); exit( 0 ); } /* initialize network */ rtems_bsdnet_initialize_network(); rtems_pppd_initialize(); pppdapp_initialize(); rtems_task_delete(RTEMS_SELF); }