Users Guide: Network Microcontroller Supplement User Manual

High-Speed Microcontroller Users
Guide: Network Microcontroller
Supplement
ROM REDIRECT FUNCTIONS
The usage of those ROM redirect functions not previously described as a directly exported ROM function (i.e., member of the ROM
export table) are covered here.
gettimemillis
The gettimemillis function gets the current time in milliseconds. The DS80C400 silicon software does not support a real-time clock;
therefore, the DS80C400 silicon software version of this function returns the number of milliseconds since the system was initialized. A
user replacement of this function should return the absolute time.
getthreadID
The getthreadID function gets the current thread ID. The DS80C400 silicon software does not support threads; therefor
e, the
DS80C400 silicon softwar
e version of this function always returns ACC = 01h.
threadresume
The threadresume function resumes a suspended thread. The DS80C400 silicon software does not support threads; therefore, the
DS80C400 silicon softwar
e version of this function resumes the task.
threadIOsleep
threadIOsleepNC
The threadIOsleep and threadIOsleepNC functions put a thread to sleep, waiting for I/O. The NC version of this function does not
enter a critical section and is only called fr
om critical sections. The DS80C400 silicon software does not support threads; ther
efore, the
DS80C400 silicon software version of this function works on the task.
threadsave
threadrestore
The threadsave and threadrestore functions save/restore (the state of) a thread. The DS80C400 silicon software does not support
thr
eads and, therefore, the DS80C400 silicon software versions of these functions do nothing.
sleep
The sleep function sleeps, suspending a task for at least the r
equested amount of time.
INPUT DESCRIPTION OUTPUT DESCRIPTION
ACC
R3:R0
Task ID
Sleep time in milliseconds
ACC
Success (= 00h) or failure code
INPUT DESCRIPTION OUTPUT DESCRIPTION
——
INPUT DESCRIPTION OUTPUT DESCRIPTION
ACC
R3:R0
Set <> 00h for infinite timeout
Timeout value (if ACC = 00h)
ACC
Success (= 00h) or failure code
INPUT DESCRIPTION OUTPUT DESCRIPTION
ACC
R0
Thread ID
Task ID
ACC
Success (= 00h) or failure code
INPUT DESCRIPTION OUTPUT DESCRIPTION
ACC Always returns 01h
INPUT DESCRIPTION OUTPUT DESCRIPTION
R4:R0 Time in milliseconds
218
Maxim Integrated