- 203 -
vrst_mpf Clear fixed-size memory pool area
[
[[
[
C
C
L
La
an
ng
gu
ua
ag
ge
e
A
AP
PI
I
]
]]
]
ER ercd = vrst_mpf( ID mpfid );
z
z
P
Pa
ar
ra
am
me
et
te
er
rs
s
ID mpfid Fixed-size memory pool ID to be cleared
z
z
R
Re
et
tu
ur
rn
n
P
Pa
ar
ra
am
me
et
te
er
rs
s
ER ercd Terminated normally (E_OK)
[
[[
[
A
As
ss
se
em
mb
bl
ly
y
l
la
an
ng
gu
ua
ag
ge
e
A
AP
PI
I
]
]]
]
.include mr100.inc
vrst_mpf MPFID
z
z
P
Pa
ar
ra
am
me
et
te
er
rs
s
MPFID Fixed-size memory pool ID to be cleared
z
z
R
Re
eg
gi
is
st
te
er
r
c
co
on
nt
te
en
nt
ts
s
a
af
ft
te
er
r
s
se
er
rv
vi
ic
ce
e
c
ca
al
ll
l
i
is
s
i
is
ss
su
ue
ed
d
Register name Content after service call is issued
R0 Error code
R2 Fixed-size memory pool ID to be cleared
[
[[
[
E
Er
rr
ro
or
r
c
co
od
de
e
]
]]
]
None
[
[[
[
F
Fu
un
nc
ct
ti
io
on
na
al
l
d
de
es
sc
cr
ri
ip
pt
ti
io
on
n
]
]]
]
This service call initializes the fixed-size memory pool indicated by mpfid. If tasks are enqueued in a memory block wait-
ing queue, all of the tasks enqueued in the memory block waiting queue are released from WAITING state. Furthermore,
the error code EV_RST is returned to the tasks that have been released from WAITING state.
This service call can be issued only from task context. It cannot be issued from non-task context.
[
[[
[
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 task1(void)
{
:
vrst_mpf( ID_mpf1 );
:
}
<<Example statement in assembly language>>
.include mr100.inc
.GLB task
task: :
PUSH.W R2
vrst_mpf #ID_MPF1
: