beautypg.com

Renesas Emulator System M3T-MR100 User Manual

Page 124

background image

- 108 -

5.4 Synchronization & Communication Function (Eventflag)

Specifications of the eventflag function of MR100 are listed in Table 5.7.

Table 5.7 Specifications of the Eventflag Function

No. Item

Content

1 Event0flag

ID

1-255

2

Number of bits comprising eventflag

32 bits

TA_TFIFO: Waiting

tasks

enqueued in order of FIFO

TA_TPRI:

Waiting tasks enqueued in order of priority

TA_WSGL:

Multiple tasks cannot be kept waiting

TA_WMUL:

Multiple tasks can be kept waiting

3 Eventflag

attribute

TA_CLR:

Bit pattern cleared when waiting task is released

Table 5.8 List of Eventflag Function Service Call

System State

No. Service

Call

Function

T N E D

U

L

1 set_flg [S][B]

O O O

O

2 iset_flg [S][B]

Sets eventflag

O O O

O

3 clr_flg [S][B]

O O O

O

4 iclr_flg

Clears eventflag

O O O

O

5 wai_flg [S][B]

Waits

for

eventflag

O O O

6 pol_flg [S][B]

O O O

O

7 ipol_flg [S]

Waits for eventflag (polling)

O O O

O

8 twai_flg [S]

Waits

for

eventflag

(with

timeout)

O O O

9

ref_flg

O O O

O

10 iref_flg

References eventflag status

O O O

O

Notes:

[S]: Standard profile service calls
[B]: Basic profile service calls

Each sign within " System State " is a following meaning.

♦ T: Can be called from task context

♦ N: Can be called from non-task context

♦ E: Can be called from dispatch-enabled state

♦ D: Can be called from dispatch-disabled state

♦ U: Can be called from CPU-unlocked state

♦ L: Can be called from CPU-locked state