Configuration file, 3 configuration file – Renesas 70 User Manual
Page 154

Chapter 8 Sample Program Description
- 144 -
8.3 Configuration File
1
//*************************************************************************
2
//
3
// COPYRIGHT(C) 2003,2005 RENESAS TECHNOLOGY CORPORATION
4
// AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
5
//
6
// MR308 System Configuration File.
7
// "$Id: smp.cfg,v 1.5 2005/06/15 05:41:54 inui Exp $"
8
//
9
//*************************************************************************
10
11
// System Definition
12
system{
13
stack_size = 1024;
14
priority
=
10;
15
system_IPL = 4;
16
task_pause =
NO;
17
timeout
=
YES;
18
tic_nume
= 1;
19
tic_deno
=
1;
20
message_pri =
255;
21
};
22
//System Clock Definition
23
clock{
24
mpu_clock
=
20MHz;
25
timer = A0;
26
IPL = 4;
27
};
28
//Task Definition
29
//
30
task[]{
31
entry_address
=
main();
32
name
= ID_main;
33
stack_size = 100;
34
priority
=
1;
35
initial_start
=
ON;
36
};
37
task[]{
38
entry_address
=
task1();
39
name
=
ID_task1;
40
stack_size = 500;
41
priority
=
2;
42
};
43
task[]{
44
entry_address
=
task2();
45
name
=
ID_task2;
46
stack_size =
500;
47
priority
=
3;
48
};
49
50
semaphore[]{
51
name
= ID_sem1;
52
max_count
=
1;
53
initial_count
=
1;
54
wait_queue =
TA_TPRI;
55
};
56
57
58
59
cyclic_hand [1] {
60
name
=
ID_cyh1;
61
interval_counter
=
100;
62
start
=
OFF;
63
phsatr
=
OFF;
64
phs_counter
=
0;
65
entry_address
=
cyh1();
66
exinf
=
1;
67
};