-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGlobal.h
33 lines (28 loc) · 973 Bytes
/
Global.h
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
/*
** Main header
*/
#pragma once
typedef struct {
int DigitalPin;
void (*EventFunction)();
} BUTTON_MAP; // Button callbacks map
typedef enum {
BeamDIR = 1,
BeamSET = 0,
} BHTYPE; // Arrow beam for current and planned directions
typedef enum {
Released = 0,
Pressed = 1,
Held = 2, // Currently unused
} BUTTON_STATE; // Button states
/* Debug settings expansion */
#if ((!defined(DEBUG)) && (defined(DEBUG_VERBOSE) || defined(DEBUG_ULTRAVERBOSE) || defined(DEBUG_SLEEP)))
#define DEBUG
#endif
#if ((!defined(DEBUG_VERBOSE)) && defined(DEBUG_ULTRAVERBOSE))
#define DEBUG_VERBOSE
#endif
/* Frame skips expansion */
#if ((!defined(FRAME_SKIPS)) || (0 == FRAME_SKIPS))
#define DISABLE_SKIPPING
#endif