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
Restart with interrupt
- Jan Lichtenbelt
- Posts: 797
- Joined: Tue Feb 17, 2009 8:35 pm
- Location: Haren GN, the Netherlands
- Has thanked: 128 times
- Been thanked: 264 times
- Contact:
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Restart with interrupt
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel