Subversion Repositories svn.mios32

Rev

Rev 2593 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2593 hawkeye 1
#include "commonIncludes.h"
2182 hawkeye 2
 
2571 hawkeye 3
// --- LEDs ---
2182 hawkeye 4
 
2594 hawkeye 5
const u8 HW_LED_RED_GP1 = 11;
6
const u8 HW_LED_RED_GP2 = 18;
7
const u8 HW_LED_RED_GP3 = 25;
8
const u8 HW_LED_RED_GP4 = 32;
9
const u8 HW_LED_RED_GP5 = 38;
10
const u8 HW_LED_RED_GP6 = 45;
2571 hawkeye 11
 
2594 hawkeye 12
const u8 HW_LED_GREEN_GP1 = 10;
13
const u8 HW_LED_GREEN_GP2 = 17;
14
const u8 HW_LED_GREEN_GP3 = 24;
15
const u8 HW_LED_GREEN_GP4 = 30;
16
const u8 HW_LED_GREEN_GP5 = 37;
17
const u8 HW_LED_GREEN_GP6 = 44;
2571 hawkeye 18
 
2594 hawkeye 19
const u8 HW_LED_BLUE_GP1 = 9;
20
const u8 HW_LED_BLUE_GP2 = 16;
21
const u8 HW_LED_BLUE_GP3 = 22;
22
const u8 HW_LED_BLUE_GP4 = 29;
23
const u8 HW_LED_BLUE_GP5 = 36;
24
const u8 HW_LED_BLUE_GP6 = 43;
2571 hawkeye 25
 
2594 hawkeye 26
const u8 HW_LED_RED_RUNSTOP = 8;
27
const u8 HW_LED_RED_ARM = 14;
28
const u8 HW_LED_RED_SHIFT = 21;
29
const u8 HW_LED_RED_MENU = 28;
30
const u8 HW_LED_RED_COPY = 35;
31
const u8 HW_LED_RED_PASTE = 42;
32
const u8 HW_LED_RED_DELETE = 51;
2571 hawkeye 33
 
2594 hawkeye 34
const u8 HW_LED_GREEN_RUNSTOP = 127;
35
const u8 HW_LED_GREEN_ARM = 13;
36
const u8 HW_LED_GREEN_SHIFT = 20;
37
const u8 HW_LED_GREEN_MENU = 27;
38
const u8 HW_LED_GREEN_COPY = 34;
39
const u8 HW_LED_GREEN_PASTE = 41;
40
const u8 HW_LED_GREEN_DELETE = 52;
41
 
42
const u8 HW_LED_BLUE_RUNSTOP = 4;
43
const u8 HW_LED_BLUE_ARM = 12;
44
const u8 HW_LED_BLUE_SHIFT = 19;
45
const u8 HW_LED_BLUE_MENU = 26;
46
const u8 HW_LED_BLUE_COPY = 33;
47
const u8 HW_LED_BLUE_PASTE = 40;
48
const u8 HW_LED_BLUE_DELETE = 46;
49
 
50
// LOGICAL LED STATES
51
const u8 LED_OFF = 0;
52
const u8 LED_RED = 1;
53
const u8 LED_GREEN = 2;
54
const u8 LED_BLUE = 4;
55
 
2571 hawkeye 56
const u8 led_scene1 = 15;
57
const u8 led_scene2 = 7;
58
const u8 led_scene3 = 6;
59
const u8 led_scene4 = 5;
60
const u8 led_scene5 = 2;
61
const u8 led_scene6 = 1;
62
 
63
const u8 led_page_main = 39;
64
const u8 led_page_1 = 47;
65
const u8 led_page_2 = 48;
66
const u8 led_page_3 = 49;
67
const u8 led_page_4 = 50;
68
const u8 led_page_5 = 53;
69
const u8 led_page_6 = 54;
70
 
71
 
72
 
73
const u8 led_scene_up = 3;
74
const u8 led_scene_down = 0;
75
 
76
const u8 led_copy = 34;
77
const u8 led_paste = 41;
78
 
79
const u8 led_beat0 = 3;
80
const u8 led_beat1 = 127;
81
const u8 led_beat2 = 127;
82
const u8 led_beat3 = 127;
83
 
84
 
85
// --- Switches ---
86
 
2594 hawkeye 87
const u8 sw_runstop = 15;
2184 hawkeye 88
const u8 sw_armrecord = 14;
2571 hawkeye 89
const u8 sw_encoder2 = 4;
2184 hawkeye 90
 
2571 hawkeye 91
const u8 sw_gp1 = 12;
92
const u8 sw_gp2 = 7;
93
const u8 sw_gp3 = 6;
94
const u8 sw_gp4 = 30;
95
const u8 sw_gp5 = 29;
96
const u8 sw_gp6 = 28;
97
 
2593 hawkeye 98
const u8 sw_menu = 23;
99
const u8 sw_shift = 13;
2571 hawkeye 100
const u8 sw_copy = 22;
101
const u8 sw_paste = 21;
102
const u8 sw_delete = 20;
103
 
104
 
105
// -- Encoders ---
106
 
107
const u8 enc_scene_id = 0;
108
const u8 enc_scene = 4;
109
 
110
const u8 enc_track_id = 1;
111
const u8 enc_track = 10;
112
 
113
const u8 enc_page_id = 2;
114
const u8 enc_page = 24;
115
 
116
const u8 enc_data_id = 3;
117
const u8 enc_data = 18;
118
 
119
 
120
/* LED mapping
121
 * -----------
122
 *
123
 * dout  0 = scene switch mode: clip
124
 * dout  1 = scene 6
125
 * dout  2 = scene 5
126
 * dout  3 = run/stop green
127
 * dout  4 = run/stop blue
128
 * dout  5 = scene 4
129
 * dout  6 = scene 3
130
 * dout  7 = scene 2
131
 * dout  8 = run/stop red
132
 * dout  9 = gp1 blue
133
 * dout 10 = gp1 green
134
 * dout 11 = gp1 red
135
 * dout 12 = arm blue
136
 * dout 13 = arm green
137
 * dout 14 = arm red
138
 * dout 15 = scene 1
139
 * dout 16 = gp2 blue
140
 * dout 17 = gp2 green
141
 * dout 18 = gp2 red
2593 hawkeye 142
 * dout 19 = shift blue
143
 * dout 20 = shift green
144
 * dout 21 = shift red
2571 hawkeye 145
 * dout 22 = gp3 blue
146
 * dout 23 = scene switch mode: all
147
 * dout 24 = gp3 green
148
 * dout 25 = gp3 red
2593 hawkeye 149
 * dout 26 = menu blue
150
 * dout 27 = menu green
151
 * dout 28 = menu red
2571 hawkeye 152
 * dout 29 = gp4 blue
153
 * dout 30 = gp4 green
154
 * dout 31 = reserved
155
 * dout 32 = gp4 red
156
 * dout 33 = copy blue
157
 * dout 34 = copy green
158
 * dout 35 = copy red
159
 * dout 36 = gp5 blue
160
 * dout 37 = gp5 green
161
 * dout 38 = gp5 red
162
 * dout 39 = menu mode: edit
163
 * dout 40 = paste blue
164
 * dout 41 = paste green
165
 * dout 42 = paste red
166
 * dout 43 = gp6 blue
167
 * dout 44 = gp6 green
168
 * dout 45 = gp6 red
169
 * dout 46 = delete blue
170
 * dout 47 = page 1
171
 * dout 48 = page 2
172
 * dout 49 = page 3
173
 * dout 50 = page 4
174
 * dout 51 = delete red
175
 * dout 52 = delete green
176
 * dout 53 = page 5
177
 * dout 54 = page 6
178
 * dout 55 = menu mode: session
179
 *
180
 * BUTTON/ENCODER MAPPING
181
 * ----------------------
182
 *
183
 * gp1      = din 12
184
 * gp2      = din  7
185
 * gp3      = din  6
186
 * gp4      = din 30
187
 * gp5      = din 29
188
 * gp6      = din 28
189
 * run/stop = din 15
190
 * arm      = din 14
2593 hawkeye 191
 * shift    = din 13
192
 * menu     = din 23
2571 hawkeye 193
 * copy     = din 22
194
 * paste    = din 21
195
 * delete   = din 20
196
 *
197
 * scene encoder = din 4/5
198
 * scene button  = din 3
199
 * track/select encoder = din 10/11
200
 * track/select button = din 2
201
 * page encoder  = din 24/25
202
 * page button = din 26
203
 * data encoder = din 18/19
204
 * data button = din 16
205
 */