![]() ZBasic System Library
266
ZBasic Microcontrollers
Type
Subroutine
Invocation
ResetProcessor()
Discussion
Calling this routine will cause a WatchDog reset of the processor within approximately 40ms. When the
processor begins running again, the value of Register.ResetFlags will indicate that a WatchDog
reset has occurred. If you need to be able to distinguish between an actual WatchDog reset and a call to
ResetProcessor() it is recommended that you define a persistent variable and set its value to indicate
the source of the reset.
Compatibility
BasicX does not support Register.ResetFlags.
|