Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1389 → Rev 1388

/demos/trunk/input/key.c
15,6 → 15,8
*/
 
/*
* 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
28,6 → 30,7
* 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>
35,10 → 38,15
#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();
}
94,6 → 102,7
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) {
101,6 → 110,11
sys_end();
} else
task_activate(pid);
/*while ( (sys_gettime(NULL)/1000) < 20000);
my_sysclose(NULL);*/
//while(1);
 
return 0;
}