15,8 → 15,6 |
*/ |
|
/* |
* Copyright (C) 2000 Paolo Gai |
* |
* This program is free software; you can redistribute it and/or modify |
* it under the terms of the GNU General Public License as published by |
* the Free Software Foundation; either version 2 of the License, or |
30,7 → 28,6 |
* You should have received a copy of the GNU General Public License |
* along with this program; if not, write to the Free Software |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* |
*/ |
|
#include <kernel/kern.h> |
38,15 → 35,10 |
#include <stdlib.h> |
#include <string.h> |
|
#include <drivers/shark_linuxc26.h> |
#include <drivers/shark_input26.h> |
#include <drivers/shark_keyb26.h> |
|
void my_sysclose(KEY_EVT *e) |
{ |
KEYB26_close(); |
INPUT26_close(); |
|
kern_printf("S.Ha.R.K. closed.\n\n"); |
sys_end(); |
} |
102,7 → 94,6 |
soft_task_def_ctrl_jet(mp); |
soft_task_def_met(mp,700); |
soft_task_def_period(mp,1000); |
//soft_task_def_aperiodic(mp); |
soft_task_def_usemath(mp); |
pid = task_create("Keyb_Print", my_getch, &mp, NULL); |
if (pid == NIL) { |
111,10 → 102,5 |
} else |
task_activate(pid); |
|
/*while ( (sys_gettime(NULL)/1000) < 20000); |
my_sysclose(NULL);*/ |
|
//while(1); |
|
return 0; |
} |