- 81 -
[
[[
[
E
Ex
xa
am
mp
pl
le
e
p
pr
ro
og
gr
ra
am
m
s
st
ta
at
te
em
me
en
nt
t
]
]]
]
<<Example statement in C language>>
#include <itron.h>
#include <kernel.h>
#include “kernel_id.h”
void task()
{ T_RTSK rtsk;
ER ercd;
:
ercd = ref_tsk( ID_main, &rtsk );
:
}
<<Example statement in assembly language>>
_refdata: .blkb 26
.include mr100.inc
.GLB task
task: :
PUSH.W R2
PUSH.L A1
ref_tsk #TSK_SELF,#_refdata
: