Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1664 pj 1
/*
2
 * Project: S.Ha.R.K.
3
 *
4
 * Coordinators:
5
 *   Giorgio Buttazzo    <giorgio@sssup.it>
6
 *   Giuseppe Lipari       <lipari@sssup.it>
7
 *   Paolo Gai               <pj@gandalf.sssup.it>
8
 *
9
 * Authors     :
10
 *   Kabilan Sukumar      <kabbys2@yahoo.com>
11
 *   Rajenish Kumar jain  <rajenish_jain@yahoo.com>
12
 *   Deepaknath T K       <deepaknathtk@yahoo.com>
13
 *
14
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
15
 *
16
 * http://www.sssup.it
17
 * http://retis.sssup.it
18
 * http://shark.sssup.it
19
 */
20
 
21
/*
22
 * Copyright (C) 2000  Kabilan Sukumar,  Rajenish Kumar jain, Deepaknath T K
23
 *
24
 * This program is free software; you can redistribute it and/or modify
25
 * it under the terms of the GNU General Public License as published by
26
 * the Free Software Foundation; either version 2 of the License, or
27
 * (at your option) any later version.
28
 *
29
 * This program is distributed in the hope that it will be useful,
30
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
31
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32
 * GNU General Public License for more details.
33
 *
34
 * You should have received a copy of the GNU General Public License
35
 * along with this program; if not, write to the Free Software
36
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
37
 *
38
 */
39
 
40
 
41
#include <ll/ll.h>
42
#include <kernel/types.h>
43
#include <kernel/descr.h>
44
#include <math.h>
45
#include <drivers/glib.h>
46
#include <drivers/keyb.h>
47
 
48
 
49
#define WCET_BALL          100
50
#define PERIOD_BALL      10000
51
 
52
/*
53
 *
54
 * Global Stuffs
55
 *
56
 */
57
 
58
/* graphic mutex... */
59
extern mutex_t mutex;
60
 
61
/* useful colors... */
62
extern int white;
63
extern int black;
64
extern int red;
65
extern int gray;
66
extern int blue;
67
extern int green;
68
extern int yellow;
69
 
70
extern int escapeflag;
71
 
72
void init_jetcontrol();
73
void init_ball(int);
74
void scenario_jetcontrol();
75
void scenario_game();
76
char *itoa(int n, char *s);
77
int myrand(int x);
78
void EscapeToMenu(KEY_EVT *);
79
 
80
 
81
 
82