-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtcj.h
More file actions
55 lines (48 loc) · 1.54 KB
/
Copy pathtcj.h
File metadata and controls
55 lines (48 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//******************************************************************************
// tcj.h
// Fichero de cabecera de tcj.c
// Por Ignacio Pérez Gil 31/03/2004.
//******************************************************************************
#ifndef TCJ_H
#define TCJ_H
//******************************************************************************
// Definiciones de direcciones y botones.
//******************************************************************************
#define TCJ_ARR 0
#define TCJ_A_D 1
#define TCJ_D_A 1
#define TCJ_DER 2
#define TCJ_D_B 3
#define TCJ_B_D 3
#define TCJ_ABJ 4
#define TCJ_B_I 5
#define TCJ_I_B 5
#define TCJ_IZQ 6
#define TCJ_I_A 7
#define TCJ_A_I 7
#define TCJ_AC0 8
#define TCJ_AC1 9
#define TCJ_AC2 10
#define TCJ_AC3 11
#define TCJ_AC4 12
#define TCJ_AC5 13
//******************************************************************************
// Definiciones varias.
//******************************************************************************
#define TCJ_MAX_ENTRADAS 3
#define TCJ_NUM_BOTONES 6
#define TCJ_NO_INSTALAR 0
#define TCJ_INSTALAR_T 1
#define TCJ_INSTALAR_J 2
#define TCJ_INSTALAR_T_J 3
//******************************************************************************
// Declaración de funciones.
//******************************************************************************
void tcj_inicializar(unsigned char instalar);
void tcj_incorporar_tecla(char diracc, unsigned char nueva_entrada);
void tcj_comprobar(void);
#ifndef TCJ_C
extern
#endif
char tcj_estado[8+TCJ_NUM_BOTONES];
#endif