Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1376 → Rev 1377

/demos/trunk/base/mdemo.c
34,7 → 34,7
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*
* CVS : $Id: mdemo.c,v 1.1 2002-11-11 08:22:46 pj Exp $
* CVS : $Id: mdemo.c,v 1.2 2004-04-17 11:36:14 giacomo Exp $
 
This test verify the correctness of the NOP module. It works with the
PI, PC, SRP module, too.
60,7 → 60,6
*/
 
#include "kernel/kern.h"
#include "drivers/keyb.h"
#include "modules/srp.h"
 
mutex_t m0;
107,12 → 106,6
return 0;
}
 
void fine(KEY_EVT *e)
{
sys_end();
}
 
 
int main(int argc, char **argv)
{
struct timespec t;
129,14 → 122,6
PC_RES_MODEL r;
SRP_RES_MODEL srp;
 
KEY_EVT emerg;
 
//keyb_set_map(itaMap);
emerg.ascii = 'x';
emerg.scan = KEY_X;
emerg.flag = ALTL_BIT;
keyb_hook(emerg,fine);
 
/* ---------------------------------------------------------------------
Mutex creation
--------------------------------------------------------------------- */
194,7 → 179,11
 
task_activate(p2);
 
cprintf("END main\n");
do {
sys_gettime(&t);
} while (t.tv_sec < 60);
sys_end();
 
return 0;
}