- 181 -
sns_dpn Reference dispatching pending state
[
[[
[
C
C
L
La
an
ng
gu
ua
ag
ge
e
A
AP
PI
I
]
]]
]
BOOL state = sns_dpn();
z
z
P
Pa
ar
ra
am
me
et
te
er
rs
s
None
z
z
R
Re
et
tu
ur
rn
n
P
Pa
ar
ra
am
me
et
te
er
rs
s
BOOL state TRUE: Dispatching pending state
FALSE: Not dispatching pending state
[
[[
[
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
sns_dpn
z
z
P
Pa
ar
ra
am
me
et
te
er
rs
s
None
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 TRUE: Dispatching pending state
FALSE: Not dispatching pending state
[
[[
[
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 returns TRUE when the system is in a dispatching pending state, or returns FALSE when the system is not
in a dispatching pending state. More specifically, FALSE is returned when all of the following conditions are met; other-
wise, TRUE is returned.
(1) The system is not in a dispatching pending state.
(2) The system is not in a CPU locked state.
(3) The object made pending is a task.
This service call can also be invoked from a CPU locked state. It returns TRUE when the system is in a dispatching dis-
abled state, or returns FALSE when the system is in a dispatching enabled state.
[
[[
[
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()
{
BOOL stat;
:
stat = sns_dpn();
:
}
<<Example statement in assembly language>>
.include mr100.inc
.GLB task
task: :
sns_dpn
: