summaryrefslogtreecommitdiffstats
path: root/include/app_defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/app_defs.h')
-rw-r--r--include/app_defs.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/include/app_defs.h b/include/app_defs.h
new file mode 100644
index 0000000..b339ed1
--- /dev/null
+++ b/include/app_defs.h
@@ -0,0 +1,65 @@
1
2#ifndef APP_TYPES_H
3#define APP_TYPES_H
4
5// ____________________________________________________________________________
6//
7// Types
8// ____________________________________________________________________________
9
10typedef signed long s32;
11typedef signed short s16;
12typedef signed char s8;
13
14typedef unsigned long u32;
15typedef unsigned short u16;
16typedef unsigned char u8;
17
18// ____________________________________________________________________________
19//
20// App structure
21// ____________________________________________________________________________
22
23#define TYPEPAD 0
24#define TYPESETUP 1
25
26#define MAXLED 63
27
28// ____________________________________________________________________________
29//
30// Useful MIDI constants
31// ____________________________________________________________________________
32
33#define NOTEON 0x90
34#define NOTEOFF 0x80
35#define POLYAFTERTOUCH 0xA0
36#define CC 0xB0
37#define CHANNELAFTERTOUCH 0xD0
38#define SONGPOSITIONPOINTER 0xF2
39#define MIDITIMINGCLOCK 0xF8
40#define MIDISTART 0xFA
41#define MIDICONTINUE 0xFB
42#define MIDISTOP 0xFC
43
44// ____________________________________________________________________________
45//
46// MIDI ports
47// ____________________________________________________________________________
48
49// USB MIDI: "Standalone" port
50#define USBSTANDALONE 0
51
52// USB MIDI: "MIDI" port
53#define USBMIDI 1
54
55// MIDI DIN port
56#define DINMIDI 2
57
58
59// MIDI Jack Socket Switch IDs
60
61#define MIDI_IN_CABLE 0
62#define MIDI_OUT_CABLE 1
63
64// ____________________________________________________________________________
65#endif