User`s guide

reset
Purpose Reset processor
Syntax reset(cc,timeout)
reset(cc)
Description reset(cc,timeout) stops program execution on the processor and
asynchronously performs a processor reset, returning all p rocessor
register contents to their power up settings. The
reset function returns
after the processor halts.
To allow you to determine how long
reset waits f or the processor to
halt, input option
timeout lets you set the waiting period in seconds.
After you use
reset, the routine returns after the processor halts or
after
timeout seconds elapses, whichever comes rst.
reset(cc) stops program execution on the processor and
asynchronously performs a processor reset, returning all p rocessor
register contents to their power up settings. The
reset function returns
after the processor halts.
reset uses the global timeout value dened
in
cc to determine how long to wait for the processor to h alt before
returning. Use
get to examine the global timeout value for the link.
Use
run to restart the program loaded on the processor.
Compare to
halt which does not re set the processor after the program
stops running.
Using reset with Multiprocessor Boards
When your board contains more than one processor, reset calls the
processor resetting function for each processor represented by
cc,
resetting each processor.
Thisisthesameascalling
reset for e ach processor individually
through
ticcs obje cts for each one.
Note that the
run and halt methods still apply as mentioned earlier
in this section.
See Also halt, restart, run
7-138