-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.h
47 lines (37 loc) · 1.29 KB
/
main.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* SM Example 1
*
* ==========================================================================
*
* Copyright 2006 Thorsten Klose ([email protected])
* Licensed for personal non-commercial use only.
* All other rights reserved.
*
* ==========================================================================
*/
#ifndef _MAIN_H
#define _MAIN_H
/////////////////////////////////////////////////////////////////////////////
// Global definitions
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// Global Types
/////////////////////////////////////////////////////////////////////////////
// this is optional, but if you're used to booleans, it's a bit nicer:
#define TRUE 1
#define FALSE 0
// status of application
typedef union {
struct {
unsigned ALL:8;
};
struct {
unsigned DISPLAY_UPDATE_REQ:1; // requests a display update
unsigned PLAY:1; // requests a display update
};
} app_flags_t;
/////////////////////////////////////////////////////////////////////////////
// Export global variables
/////////////////////////////////////////////////////////////////////////////
extern app_flags_t app_flags;
#endif /* _MAIN_H */