Blame | Last modification | View Log | RSS feed
/*
* Project: S.Ha.R.K.
*
* Coordinators:
* Giorgio Buttazzo <giorgio@sssup.it>
* Giuseppe Lipari <lipari@sssup.it>
* Paolo Gai <pj@gandalf.sssup.it>
*
* Authors :
* Kabilan Sukumar <kabbys2@yahoo.com>
* Rajenish Kumar jain <rajenish_jain@yahoo.com>
* Deepaknath T K <deepaknathtk@yahoo.com>
*
* ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
*
* http://www.sssup.it
* http://retis.sssup.it
* http://shark.sssup.it
*/
/*
* Copyright (C) 2000 Kabilan Sukumar, Rajenish Kumar jain, Deepaknath T K
*
* 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
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* 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 <ll/ll.h>
#include <kernel/types.h>
#include <kernel/descr.h>
#include <math.h>
#include <drivers/glib.h>
#include <drivers/keyb.h>
#define WCET_BALL 100
#define PERIOD_BALL 10000
/*
*
* Global Stuffs
*
*/
/* graphic mutex... */
extern mutex_t mutex;
/* useful colors... */
extern int white;
extern int black;
extern int red;
extern int gray;
extern int blue;
extern int green;
extern int yellow;
extern int escapeflag;
void init_jetcontrol();
void init_ball(int);
void scenario_jetcontrol();
void scenario_game();
char *itoa(int n, char *s);
int myrand(int x);
void EscapeToMenu(KEY_EVT *);