Statistics
| Revision:

root / branch / tronel_florian / Emb_App / conf_noyau.cfg @ 278

History | View | Annotate | Download (3.19 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	= 6;
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	= 1;//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	= 1;//2	initial_start	= OFF;
61
	exinf	= 0x0;
62
};
63

    
64
//vitesse de la voiture
65
task[]{
66
	entry_address	= task_1();
67
	name	= ID_task_1;
68
	stack_size	= 256;
69
	stack_section	= stack;
70
	priority	= 2;
71
	initial_start	= OFF;
72
	exinf	= 0x0;
73
};
74
//asservissement de la tourelle
75
task[]{
76
	entry_address	= task_2();
77
	name	= ID_task_2;
78
	stack_size	= 256;
79
	stack_section	= stack;
80
	priority	= 2;
81
	initial_start	= OFF;
82
	exinf	= 0x0;
83
};
84
//acquisition de la distance
85
task[]{
86
	entry_address	= task_3();
87
	name	= ID_task_3;
88
	stack_size	= 256;
89
	stack_section	= stack;
90
	priority	= 2;
91
	initial_start	= OFF;
92
	exinf	= 0x0;
93
};
94
//asservissement angle roue
95
task[]{
96
	entry_address	= task_4();
97
	name	= ID_task_4;
98
	stack_size	= 256;
99
	stack_section	= stack;
100
	priority	= 2;
101
	initial_start	= OFF;
102
	exinf	= 0x0;
103
};
104

    
105
flag[]{
106
	name	= ev_bus_fin_tr;
107
	initial_pattern	= 0x0000;
108
	wait_queue	= TA_TFIFO;
109
	clear_attribute	= YES;
110
	wait_multi	= TA_WMUL;
111
};
112
flag[]{
113
	name	= ev_periph;
114
	initial_pattern	= 0x0000;
115
	wait_queue	= TA_TFIFO;
116
	clear_attribute	= NO;
117
	wait_multi	= TA_WMUL;
118
};
119
flag[]{
120
	name	= event;
121
	initial_pattern	= 0x0000;
122
	wait_queue	= TA_TFIFO;
123
	clear_attribute	= NO;
124
	wait_multi	= TA_WMUL;
125
};
126

    
127

    
128
dataqueue[]{
129
	name	= CanTx;
130
	wait_queue	= TA_TFIFO;
131
	buffer_size	= 8;
132
};
133
dataqueue[]{
134
	name	= CanRx;
135
	wait_queue	= TA_TFIFO;
136
	buffer_size	= 4;
137
};
138

    
139

    
140
cyclic_hand[]{
141
	entry_address	= HC_1();
142
	name	= ID_HC_1;
143
	exinf	= 0x0;
144
	start	= OFF;
145
	phsatr	= OFF;
146
	interval_counter	= 0x1F4;
147
	phs_counter	= 0x0;
148
};
149

    
150
vdataqueue[]{
151
	name	= QdmTouche;
152
	wait_queue	= TA_TFIFO;
153
	buffer_size	= 16;
154
};
155

    
156
interrupt_vector[8]{
157
	os_int	= YES;
158
	entry_address	= uart0_dma0_tr_OK();
159
	pragma_switch	= ;
160
};
161
interrupt_vector[17]{
162
	os_int	= YES;
163
	entry_address	= uart0_itx_ok();
164
	pragma_switch	= ;
165
};
166
interrupt_vector[18]{
167
	os_int	= YES;
168
	entry_address	= uart0_irx();
169
	pragma_switch	= ;
170
};
171
interrupt_vector[21]{
172
	os_int	= YES;
173
	entry_address	= mesure();
174
	pragma_switch	= ;
175
};
176
interrupt_vector[43]{
177
	os_int	= YES;
178
	entry_address	= itouche();
179
	pragma_switch	= ;
180
};
181

    
182

    
183

    
184
//
185
// End of Configuration