- 181 -
sns_dpn
Reference dispatching pending state
[
[
[
[
C
C
L
L
a
a
n
n
g
g
u
u
a
a
g
g
e
e
A
A
P
P
I
I
]
]
]
]
BOOL state = sns_dpn();
z
z
P
P
a
a
r
r
a
a
m
m
e
e
t
t
e
e
r
r
s
s
None
z
z
R
R
e
e
t
t
u
u
r
r
n
n
P
P
a
a
r
r
a
a
m
m
e
e
t
t
e
e
r
r
s
s
BOOL state TRUE:
Dispatching pending state
FALSE: Not dispatching pending state
[
[
[
[
A
A
s
s
s
s
e
e
m
m
b
b
l
l
y
y
l
l
a
a
n
n
g
g
u
u
a
a
g
g
e
e
A
A
P
P
I
I
]
]
]
]
.include mr100.inc
sns_dpn
z
z
P
P
a
a
r
r
a
a
m
m
e
e
t
t
e
e
r
r
s
s
None
z
z
R
R
e
e
g
g
i
i
s
s
t
t
e
e
r
r
c
c
o
o
n
n
t
t
e
e
n
n
t
t
s
s
a
a
f
f
t
t
e
e
r
r
s
s
e
e
r
r
v
v
i
i
c
c
e
e
c
c
a
a
l
l
l
l
i
i
s
s
i
i
s
s
s
s
u
u
e
e
d
d
Register name
Content after service call is issued
R0
TRUE: Dispatching pending state
FALSE: Not dispatching pending state
[
[
[
[
E
E
r
r
r
r
o
o
r
r
c
c
o
o
d
d
e
e
]
]
]
]
None
[
[
[
[
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 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
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”
void task()
{
BOOL
stat;
:
stat = sns_dpn();
:
}
<<Example statement in assembly language>>
.include
mr100.inc
.GLB
task
task:
:
sns_dpn
: