50 lines
1.2 KiB
C
50 lines
1.2 KiB
C
#ifndef __GLOBAL_INC_HEADER__
|
|
#define __GLOBAL_INC_HEADER__
|
|
|
|
|
|
/* *************************************
|
|
* 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) char buffer##suff[16]; \
|
|
snprintf(buffer##suff, sizeof(buffer##suff), "%d", var); \
|
|
GfxPrintText(buffer##suff, x - (strlen(buffer##suff)<<3), 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_HEADER__
|