Statistics
| Revision:

root / branch / nan_cao / Emb_App / conf_noyau.cfg @ 310

History | View | Annotate | Download (3.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	= ang_roue();
48
	name	= ID_ang_roue;
49
	stack_size	= 512;
50
	stack_section	= stack;
51
	priority	= 5;
52
	initial_start	= OFF;
53
	exinf	= 0x0;
54
};
55

    
56
task[]{
57
	entry_address	= ang_tourelle();
58
	name	= ID_ang_tourelle;
59
	stack_size	= 512;
60
	stack_section	= stack;
61
	priority	= 6;
62
	initial_start	= OFF;
63
	exinf	= 0x0;
64
};
65
task[]{
66
	entry_address	= vit();
67
	name	= ID_vitesse;
68
	stack_size	= 512;
69
	stack_section	= stack;
70
	priority	= 7;
71
	initial_start	= OFF;
72
	exinf	= 0x0;
73
};
74

    
75
task[]{
76
	entry_address	= capteur();
77
	name	= ID_capteur;
78
	stack_size	= 512;
79
	stack_section	= stack;
80
	priority	= 7;
81
	initial_start	= OFF;
82
	exinf	= 0x0;
83
};
84
task[]{
85
	entry_address	= mod();
86
	name	= ID_mode;
87
	stack_size	= 512;
88
	stack_section	= stack;
89
	priority	= 7;
90
	initial_start	= OFF;
91
	exinf	= 0x0;
92
};
93

    
94

    
95

    
96

    
97
task[]{
98
	entry_address	= periph_tx();
99
	name	= ID_periph_tx;
100
	stack_size	= 256;
101
	stack_section	= stack;
102
	priority	= 3;
103
	initial_start	= ON;
104
	exinf	= 0x0;
105
};
106
task[]{
107
	entry_address	= periph_rx();
108
	name	= ID_periph_rx;
109
	stack_size	= 256;
110
	stack_section	= stack;
111
	priority	= 2;
112
	initial_start	= OFF;
113
	exinf	= 0x0;
114
};
115

    
116
flag[]{
117
	name	= ev_bus_fin_tr;
118
	initial_pattern	= 0x0000;
119
	wait_queue	= TA_TFIFO;
120
	clear_attribute	= YES;
121
	wait_multi	= TA_WMUL;
122
};
123
flag[]{
124
	name	= ev_periph;
125
	initial_pattern	= 0x0000;
126
	wait_queue	= TA_TFIFO;
127
	clear_attribute	= NO;
128
	wait_multi	= TA_WMUL;
129
};
130
flag[]{
131
	name	= event;
132
	initial_pattern	= 0x0000;
133
	wait_queue	= TA_TFIFO;
134
	clear_attribute	= NO;
135
	wait_multi	= TA_WMUL;
136
};
137

    
138

    
139
dataqueue[]{
140
	name	= CanTx;
141
	wait_queue	= TA_TFIFO;
142
	buffer_size	= 8;
143
};
144
dataqueue[]{
145
	name	= CanRx;
146
	wait_queue	= TA_TFIFO;
147
	buffer_size	= 4;
148
};
149

    
150

    
151

    
152

    
153
cyclic_hand[]{
154
	entry_address	= acqui();
155
	name	= ID_acqui;
156
	exinf	= 0x0;
157
	start	= OFF;
158
	phsatr	= OFF;
159
	interval_counter	= 0x64;
160
	phs_counter	= 0x0;
161
};
162

    
163

    
164
vdataqueue[]{
165
	name	= QdmTouche;
166
	wait_queue	= TA_TFIFO;
167
	buffer_size	= 16;
168
};
169

    
170
interrupt_vector[8]{
171
	os_int	= YES;
172
	entry_address	= uart0_dma0_tr_OK();
173
	pragma_switch	= ;
174
};
175
interrupt_vector[17]{
176
	os_int	= YES;
177
	entry_address	= uart0_itx_ok();
178
	pragma_switch	= ;
179
};
180
interrupt_vector[18]{
181
	os_int	= YES;
182
	entry_address	= uart0_irx();
183
	pragma_switch	= ;
184
};
185
interrupt_vector[21]{
186
	os_int	= YES;
187
	entry_address	= mesure();
188
	pragma_switch	= ;
189
};
190
interrupt_vector[43]{
191
	os_int	= YES;
192
	entry_address	= itouche();
193
	pragma_switch	= ;
194
};
195

    
196

    
197

    
198
//
199
// End of Configuration
200
//