beautypg.com

Configuration file example, 3 configuration file example – Renesas 70 User Manual

Page 129

background image

Chapter 6 Using Configurator

- 119 -

6.1.3

Configuration File Example

The following is the configuration file example.

1

////////////////////////////////////////////////////////////////////////////////

2

//

3

// kernel.cfg : building file for MR308 Ver.4.00

4

//

5

// Generated by M3T-MR308 GUI Configurator at 2005/02/28 19:01:20

6

//

7

////////////////////////////////////////////////////////////////////////////////

8

9

// system definition

10

system{

11

stack_size

=

256;

12

sysテm_IPL = 4;

13

message_pri

= 64;

14

timeout

= NO;

15

task_pause

= NO;

16

tick_nume

= 10;

17

tick_deno

= 1;

18

};

19

20

// max definition

21

maxdefine{

22

max_task

=

3;

23

max_flag

=

4;

24

max_sem

=

3;

25

max_dtq

=

3;

26

max_mbx

=

4;

27

max_mpf

=

3;

28

max_mpl

=

3;

29

max_cyh

=

4;

30

max_alh

=

2;

31

};

32

33

// system clock definition

34

clock{

35

timer_clock

=

20.000000MHz;

36

timer =

A0;

37

IPL

=

3;

38

};

39

40

task[]{

41

entry_address =

task1();

42

name

=

ID_task1;

43

stack_size

=

256;

44

priority

=

1;

45

initial_start =

OFF;

46

exinf =

0x0;

47

};

48

task[]{

49

entry_address =

task2();

50

name

=

ID_task2;

51

stack_size

=

256;

52

priority

=

5;

53

initial_start =

ON;

54

exinf =

0xFFFF;

55

};

56

task[3]{

57

entry_address =

task3();

58

name

=

ID_task3;

59

stack_size

=

256;

60

priority

=

7;

61

initial_start =

OFF;

62

exinf =

0x0;

63

};

64

65

flag[]{

66

name

=

ID_flg1;

67

initial_pattern

=

0x00000000;

68

wait_queue

=

TA_TFIFO;

69

clear_attribute

=

NO;

70

wait_multi

=

TA_WSGL;

71

};

72

flag[1]{

73

name

=

ID_flg2;

74

initial_pattern

=

0x00000001;