- 151 -
set_tim
Set system time
iset_tim
Set system time (handler only)
[
[
[
[
C
C
L
L
a
a
n
n
g
g
u
u
a
a
g
g
e
e
A
A
P
P
I
I
]
]
]
]
ER ercd = set_tim( SYSTIM *p_systim );
ER ercd = iset_tim( SYSTIM *p_systim );
z
z
P
P
a
a
r
r
a
a
m
m
e
e
t
t
e
e
r
r
s
s
SYSTIM
*p_systim
Pointer to the packet that indicates the system time to be set
Contents of p_systim
typedef struct
t_systim
{
UH
utime
0
2
(16 high-order bits)
UW ltime +4
4
(32
low-order
bits)
} SYSTIM;
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
ER ercd Terminated
normally (E_OK)
[
[
[
[
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
set_tim PK_TIM
iset_tim PK_TIM
z
z
P
P
a
a
r
r
a
a
m
m
e
e
t
t
e
e
r
r
s
s
PK_TIM
Pointer to the packet that indicates the system time to be set
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 Error
code
A1
Pointer to the packet that indicates the system time to be set
[
[
[
[
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 updates the current value of the system time to the value indicated by p_systim. The time specified in
p_systim is expressed in ms units, and not by the number of time ticks.
The values specified for p_systim must be within 0x7FFF: FFFFFFFF. If any value exceeding this limit is specified, the
service call may not operate correctly.
If this service call is to be issued from task context, use set_tim; if issued from non-task context, use iset_tim.