Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1664 pj 1
/* ------------------- */
2
/*  Useful structures  */
3
/* ------------------- */
4
 
5
#ifndef __CAR_H_
6
 
7
#define __CAR_H_
8
 
9
#include <modules/cabs.h>
10
#include <kernel/func.h>
11
#include <kernel/model.h>
12
#include <kernel/types.h>
13
#include <drivers/keyb.h>
14
#include <drivers/glib.h>
15
#include <semaphore.h>
16
#include <math.h>
17
#include <stdio.h>
18
#include <stdlib.h>
19
#include <string.h>
20
#include "const.h"
21
 
22
 
23
void moveup();
24
void movedown();
25
 
26
 
27
typedef struct {
28
  int x;
29
  int y;
30
} point;
31
 
32
/* ---------------------------------------- */
33
/*  Functions definition                    */
34
/* ---------------------------------------- */
35
 
36
/* Keyboard functions */
37
void keyb_handler();
38
void endfun(KEY_EVT *);
39
void my_close(void *);
40
 
41
/*Display functions*/
42
void cmd_display();
43
 
44
/* Closing function*/
45
void byebye();
46
void error_msg();
47
 
48
/* Tasks */
49
TASK man();			// Man task
50
TASK drive_car1();
51
TASK drive_car2();
52
TASK drive_car3();
53
TASK drive_car4();
54
 
55
 
56
/* Tasks management */
57
void create_man();
58
void initiate_tasl();
59
 
60
 
61
#endif
62