Blame | Last modification | View Log | RSS feed
/* ------------------- */
/* Useful structures */
/* ------------------- */
#ifndef __CAR_H_
#define __CAR_H_
#include <modules/cabs.h>
#include <kernel/func.h>
#include <kernel/model.h>
#include <kernel/types.h>
#include <drivers/keyb.h>
#include <drivers/glib.h>
#include <semaphore.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "const.h"
void moveup();
void movedown();
typedef struct {
int x;
int y;
} point;
/* ---------------------------------------- */
/* Functions definition */
/* ---------------------------------------- */
/* Keyboard functions */
void keyb_handler();
void endfun(KEY_EVT *);
void my_close(void *);
/*Display functions*/
void cmd_display();
/* Closing function*/
void byebye();
void error_msg();
/* Tasks */
TASK man(); // Man task
TASK drive_car1();
TASK drive_car2();
TASK drive_car3();
TASK drive_car4();
/* Tasks management */
void create_man();
void initiate_tasl();
#endif