beautypg.com

Renesas Emulator System M3T-MR100 User Manual

Page 137

background image

- 121 -

[

[

[

[

E

E

x

x

a

a

m

m

p

p

l

l

e

e

p

p

r

r

o

o

g

g

r

r

a

a

m

m

s

s

t

t

a

a

t

t

e

e

m

m

e

e

n

n

t

t

]

]

]

]

<>

#include
#include
#include “kernel_id.h”
VP_INT data[10];
void task(void)
{

:

if( snd_dtq( ID_dtq, data[0]) == E_RLWAI ){

error(“Forced

released\n”);

}

:

if( psnd_dtq( ID_dtq, data[1])== E_TMOUT ){

error(“Timeout\n”);

}

:

if( tsnd_dtq( ID_dtq, data[2], 10 ) != E_ TMOUT ){

error(“Timeout

\n”);

}

:

if( fsnd_dtq( ID_dtq, data[3]) != E_OK ){

error(“error\n”);

}

:

}

<>
.include

mr100.inc

.GLB

task

_g_dtq: .LWORD 12345678H
task:

:

PUSH.W

R2

PUSHM

R6R4,R3R1

tsnd_dtq #ID_DTQ1,_g_dtq,#100

:

PUSH.W

R2

PUSHM

R3R1

psnd_dtq #ID_DTQ2,#0FFFFFFFFH

:

PUSH.W

R2

PUSHM

R3R1

fsnd_dtq #ID_DTQ3,#0ABCDH

: