Page 1 of 1

Restart with interrupt

Posted: Thu Nov 17, 2011 3:56 pm
by Jan Lichtenbelt
Is it possible to restart the program (jump to label main) on an interrupt (with laving the interrupt on a correct way)?

Thanks for help

Kind regards

Jan Lichtenbelt

Re: Restart with interrupt

Posted: Thu Nov 17, 2011 5:01 pm
by Benj
Hello Jan,

In BoostC there is a inbuilt C function you can use.

reset();

Is this any good?

Otherwise you can switch on the watchdog timer using C code and then wait for it to time out which will reset the device.