reset - Reset target processor

Syntax

reset(cc,timeout)
reset(cc)

Description

reset(cc,timeout) stops program execution on the target processor and asynchronously performs a processor reset, returning all processor register contents to their power up settings. The reset function returns after the processor halts.

To allow you to determine how long reset waits for 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 first.

reset(cc) stops program execution on the target processor and asynchronously performs a processor reset, returning all processor register contents to their power up settings. The reset function returns after the processor halts. reset uses the global time-out value defined in cc to determine how long to wait for the processor to halt before returning. Use get to examine the global time-out value for the link.

Use run to restart the program loaded on the target.

Compare to halt which does not reset the processor after the program stops running.

Using reset with Multiprocessor Boards

When your target board contains more than one processor, reset calls the processor resetting function for each processor represented by cc, resetting each processor.

This is the same as calling reset for each processor individually through ticcs objects for each one.

Note that the run and halt methods still apply as mentioned earlier in this section.

See Also

halt, restart, run

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS
 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS