Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1377 → Rev 1376

/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.2 2004-04-17 11:36:14 giacomo Exp $
* CVS : $Id: mdemo.c,v 1.1 2002-11-11 08:22:46 pj Exp $
 
This test verify the correctness of the NOP module. It works with the
PI, PC, SRP module, too.
60,6 → 60,7
*/
 
#include "kernel/kern.h"
#include "drivers/keyb.h"
#include "modules/srp.h"
 
mutex_t m0;
106,6 → 107,12
return 0;
}
 
void fine(KEY_EVT *e)
{
sys_end();
}
 
 
int main(int argc, char **argv)
{
struct timespec t;
122,6 → 129,14
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
--------------------------------------------------------------------- */
179,11 → 194,7
 
task_activate(p2);
 
do {
sys_gettime(&t);
} while (t.tv_sec < 60);
sys_end();
cprintf("END main\n");
 
return 0;
}