2018-07-09 19:26:13 +02:00
|
|
|
#ifndef GLOBAL_INC_H__
|
|
|
|
#define GLOBAL_INC_H__
|
2017-03-07 20:57:09 +01:00
|
|
|
|
|
|
|
|
|
|
|
/* *************************************
|
2018-07-09 19:26:13 +02:00
|
|
|
* Includes
|
2017-03-07 20:57:09 +01:00
|
|
|
* *************************************/
|
|
|
|
|
|
|
|
#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>
|
2018-07-09 19:26:13 +02:00
|
|
|
#endif /* cplusplus. */
|
2017-03-07 20:57:09 +01:00
|
|
|
|
|
|
|
/* *************************************
|
2018-07-09 19:26:13 +02:00
|
|
|
* Defines
|
2017-03-07 20:57:09 +01:00
|
|
|
* *************************************/
|
|
|
|
|
2017-11-05 18:00:57 +01:00
|
|
|
#define DEBUG_VAR(var, suff, x, y) if (1) \
|
|
|
|
{ \
|
|
|
|
char buffer##suff[16]; \
|
2017-11-10 00:04:35 +01:00
|
|
|
Systemitoa(buffer##suff, sizeof(buffer##suff), var); \
|
|
|
|
GfxPrintText(buffer##suff, x, y); \
|
2017-11-05 18:00:57 +01:00
|
|
|
}
|
2017-09-08 18:39:22 +02:00
|
|
|
|
2017-03-07 20:57:09 +01:00
|
|
|
/* *************************************
|
2018-07-09 19:26:13 +02:00
|
|
|
* Structs and enums
|
2017-03-07 20:57:09 +01:00
|
|
|
* *************************************/
|
|
|
|
|
|
|
|
/* *************************************
|
2018-07-09 19:26:13 +02:00
|
|
|
* Global variables
|
2017-03-07 20:57:09 +01:00
|
|
|
* *************************************/
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern Gamebuino gb;
|
2018-07-09 19:26:13 +02:00
|
|
|
#endif /* cplusplus. */
|
2017-03-09 23:59:53 +01:00
|
|
|
|
2017-03-07 20:57:09 +01:00
|
|
|
extern const uint8_t font3x5[];
|
|
|
|
extern const uint8_t font3x3[];
|
|
|
|
|
|
|
|
/* *************************************
|
2018-07-09 19:26:13 +02:00
|
|
|
* Global prototypes
|
2017-03-07 20:57:09 +01:00
|
|
|
* *************************************/
|
|
|
|
|
2018-07-09 19:26:13 +02:00
|
|
|
#endif /* GLOBAL_INC_H__. */
|