Renesas M3T-MR100 Network Card User Manual


 
- 145 -
[
[
[
[
F
F
u
u
n
n
c
c
t
t
i
i
o
o
n
n
a
a
l
l
d
d
e
e
s
s
c
c
r
r
i
i
p
p
t
t
i
i
o
o
n
n
]
]
]
]
This service call acquires a memory block from the variable-size memory pool indicated by mplid and stores the
start address of the acquired memory block in the variable p_blk. The content of the acquired memory block is in-
determinate.
If the specified variable-size memory pool has no memory blocks in it, the task returns immediately and responds to
the call with the error code E_TMOUT.
This service call can be issued only from task context. It cannot be issued from non-task context.
[
[
[
[
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
]
]
]
]
<<Example statement in C language>>
#include <itron.h>
#include <kernel.h>
#include “kernel_id.h”
VP p_blk;
void task()
{
if( pget_mpl(ID_mpl , 200, &p_blk) != E_OK ){
error(“Not enough memory\n”);
}
}
<<Example statement in assembly language>>
.include mr100.inc
.GLB task
task:
:
PUSH.W R2
pget_mpl #ID_MPL1,#200
: