blob: 358b545a56c1e1c34e51d4ab995d6659abee9b2d (
plain) (
blame)
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
|
#ifndef GLOBAL_INC_H__
#define GLOBAL_INC_H__
/* *************************************
* Includes
* *************************************/
#include <inttypes.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <avr/pgmspace.h>
#include "settings.c"
#ifdef __cplusplus
#include <Gamebuino.h>
#include <Print.h>
#endif /* cplusplus. */
/* *************************************
* Defines
* *************************************/
#define DEBUG_VAR(var, suff, x, y) if (1) \
{ \
char buffer##suff[16]; \
Systemitoa(buffer##suff, sizeof(buffer##suff), var); \
GfxPrintText(buffer##suff, x, y); \
}
/* *************************************
* Structs and enums
* *************************************/
/* *************************************
* Global variables
* *************************************/
#ifdef __cplusplus
extern Gamebuino gb;
#endif /* cplusplus. */
extern const uint8_t font3x5[];
extern const uint8_t font3x3[];
/* *************************************
* Global prototypes
* *************************************/
#endif /* GLOBAL_INC_H__. */
|