/demos/trunk/first/initfile.c |
---|
102,6 → 102,8 |
device_drivers_close(); |
sys_shutdown_message("-- S.Ha.R.K. Closed --\n"); |
sys_abort_shutdown(0); |
return NULL; |
} |
#define SHUTDOWN_TIMEOUT_SEC 3 |
116,7 → 118,7 |
shutdown_task_PID = task_create("Shutdown Task", shutdown_task_body, &nrt, NULL); |
if (shutdown_task_PID == NIL) { |
sys_shutdown_message("Error: Cannot create shutdown task\n"); |
exit(1); |
sys_end(); |
} |
} |