root / branch / porte / Emb_App / conf_noyau.cfg @ 366
History | View | Annotate | Download (4.26 KB)
1 |
//////////////////////////////////////////////////////////////////////////////// |
---|---|
2 |
// |
3 |
// kernel.cfg : building file for MR308 Ver.4.00 |
4 |
// |
5 |
// Generated by M3T-MR308 GUI Configurator at 2013/01/08 15:28:33 |
6 |
// |
7 |
//////////////////////////////////////////////////////////////////////////////// |
8 |
|
9 |
// system definition |
10 |
system{ |
11 |
stack_size = 256; |
12 |
priority = 8; |
13 |
system_IPL = 4; |
14 |
message_pri = 1; |
15 |
timeout = YES; |
16 |
task_pause = YES; |
17 |
tic_nume = 1; |
18 |
tic_deno = 1; |
19 |
}; |
20 |
|
21 |
// max definition |
22 |
maxdefine{ |
23 |
max_task = 3; |
24 |
max_flag = 3; |
25 |
max_dtq = 2; |
26 |
max_cyh = 1; |
27 |
max_vdtq = 1; |
28 |
}; |
29 |
|
30 |
// system clock definition |
31 |
clock{ |
32 |
mpu_clock = 20.000000MHz; |
33 |
timer = A0; |
34 |
IPL = 3; |
35 |
}; |
36 |
|
37 |
task[]{ |
38 |
entry_address = main(); |
39 |
name = ID_main; |
40 |
stack_size = 512; |
41 |
stack_section = stack; |
42 |
priority = 8; |
43 |
initial_start = ON; |
44 |
exinf = 0x0; |
45 |
}; |
46 |
task[]{ |
47 |
entry_address = periph_tx(); |
48 |
name = ID_periph_tx; |
49 |
stack_size = 256; |
50 |
stack_section = stack; |
51 |
priority = 3; |
52 |
initial_start = ON; |
53 |
exinf = 0x0; |
54 |
}; |
55 |
task[]{ |
56 |
entry_address = periph_rx(); |
57 |
name = ID_periph_rx; |
58 |
stack_size = 256; |
59 |
stack_section = stack; |
60 |
priority = 2; |
61 |
initial_start = OFF; |
62 |
exinf = 0x0; |
63 |
}; |
64 |
task[]{ |
65 |
entry_address = Asserv_T(); |
66 |
name = ID_Asserv_T; |
67 |
stack_size = 256; |
68 |
stack_section = stack; |
69 |
priority = 5; |
70 |
initial_start = OFF; |
71 |
exinf = 0x0; |
72 |
}; |
73 |
|
74 |
task[]{ |
75 |
entry_address = Asserv_R(); |
76 |
name = ID_Asserv_R; |
77 |
stack_size = 256; |
78 |
stack_section = stack; |
79 |
priority = 4; |
80 |
initial_start = OFF; |
81 |
exinf = 0x0; |
82 |
}; |
83 |
|
84 |
task[]{ |
85 |
entry_address = Asserv_V(); |
86 |
name = ID_Asserv_V; |
87 |
stack_size = 256; |
88 |
stack_section = stack; |
89 |
priority = 6; |
90 |
initial_start = OFF; |
91 |
exinf = 0x0; |
92 |
}; |
93 |
|
94 |
task[]{ |
95 |
entry_address = Capteur(); |
96 |
name = ID_Capteur; |
97 |
stack_size = 256; |
98 |
stack_section = stack; |
99 |
priority = 6; |
100 |
initial_start = OFF; |
101 |
exinf = 0x0; |
102 |
}; |
103 |
|
104 |
task[]{ |
105 |
entry_address = Distance_bord(); |
106 |
name = ID_Distance_bord; |
107 |
stack_size = 256; |
108 |
stack_section = stack; |
109 |
priority = 7; |
110 |
initial_start = OFF; |
111 |
exinf = 0x0; |
112 |
}; |
113 |
|
114 |
task[]{ |
115 |
entry_address = Commande_IHM(); |
116 |
name = ID_Commande_IHM; |
117 |
stack_size = 256; |
118 |
stack_section = stack; |
119 |
priority = 6; |
120 |
initial_start = OFF; |
121 |
exinf = 0x0; |
122 |
}; |
123 |
|
124 |
task[]{ |
125 |
entry_address = Circuit(); |
126 |
name = ID_Circuit; |
127 |
stack_size = 256; |
128 |
stack_section = stack; |
129 |
priority = 6; |
130 |
initial_start = OFF; |
131 |
exinf = 0x0; |
132 |
}; |
133 |
|
134 |
task[]{ |
135 |
entry_address = Evenement(); |
136 |
name = ID_Evenement; |
137 |
stack_size = 256; |
138 |
stack_section = stack; |
139 |
priority = 6; |
140 |
initial_start = OFF; |
141 |
exinf = 0x0; |
142 |
}; |
143 |
|
144 |
flag[]{ |
145 |
name = ev_bus_fin_tr; |
146 |
initial_pattern = 0x0000; |
147 |
wait_queue = TA_TFIFO; |
148 |
clear_attribute = YES; |
149 |
wait_multi = TA_WMUL; |
150 |
}; |
151 |
flag[]{ |
152 |
name = ev_periph; |
153 |
initial_pattern = 0x0000; |
154 |
wait_queue = TA_TFIFO; |
155 |
clear_attribute = NO; |
156 |
wait_multi = TA_WMUL; |
157 |
}; |
158 |
flag[]{ |
159 |
name = event; |
160 |
initial_pattern = 0x0000; |
161 |
wait_queue = TA_TFIFO; |
162 |
clear_attribute = NO; |
163 |
wait_multi = TA_WMUL; |
164 |
}; |
165 |
|
166 |
|
167 |
dataqueue[]{ |
168 |
name = CanTx; |
169 |
wait_queue = TA_TFIFO; |
170 |
buffer_size = 8; |
171 |
}; |
172 |
dataqueue[]{ |
173 |
name = CanRx; |
174 |
wait_queue = TA_TFIFO; |
175 |
buffer_size = 4; |
176 |
}; |
177 |
|
178 |
cyclic_hand[]{ |
179 |
entry_address = acqui(); |
180 |
name = ID_acqui; |
181 |
exinf = 0x0; |
182 |
start = OFF; |
183 |
phsatr = OFF; |
184 |
interval_counter = 0x64; |
185 |
phs_counter = 0x0; |
186 |
}; |
187 |
|
188 |
cyclic_hand[]{ |
189 |
entry_address = Asserv_T_hc(); |
190 |
name = ID_Asserv_T_hc; |
191 |
exinf = 0x0; |
192 |
start = OFF; |
193 |
phsatr = OFF; |
194 |
interval_counter = 0x64; |
195 |
phs_counter = 0x0; |
196 |
}; |
197 |
|
198 |
cyclic_hand[]{ |
199 |
entry_address = Asserv_R_hc(); |
200 |
name = ID_Asserv_R_hc; |
201 |
exinf = 0x0; |
202 |
start = OFF; |
203 |
phsatr = OFF; |
204 |
interval_counter = 0x64; |
205 |
phs_counter = 0x0; |
206 |
}; |
207 |
|
208 |
cyclic_hand[]{ |
209 |
entry_address = Bp_hc(); |
210 |
name = ID_Bp_hc; |
211 |
exinf = 0x0; |
212 |
start = OFF; |
213 |
phsatr = OFF; |
214 |
interval_counter = 0x64; |
215 |
phs_counter = 0x0; |
216 |
}; |
217 |
|
218 |
vdataqueue[]{ |
219 |
name = QdmTouche; |
220 |
wait_queue = TA_TFIFO; |
221 |
buffer_size = 16; |
222 |
}; |
223 |
|
224 |
interrupt_vector[8]{ |
225 |
os_int = YES; |
226 |
entry_address = uart0_dma0_tr_OK(); |
227 |
pragma_switch = ; |
228 |
}; |
229 |
interrupt_vector[17]{ |
230 |
os_int = YES; |
231 |
entry_address = uart0_itx_ok(); |
232 |
pragma_switch = ; |
233 |
}; |
234 |
interrupt_vector[18]{ |
235 |
os_int = YES; |
236 |
entry_address = uart0_irx(); |
237 |
pragma_switch = ; |
238 |
}; |
239 |
interrupt_vector[21]{ |
240 |
os_int = YES; |
241 |
entry_address = mesure(); |
242 |
pragma_switch = ; |
243 |
}; |
244 |
interrupt_vector[43]{ |
245 |
os_int = YES; |
246 |
entry_address = itouche(); |
247 |
pragma_switch = ; |
248 |
}; |
249 |
|
250 |
|
251 |
|
252 |
// |
253 |
// End of Configuration |
254 |
// |