Hi
If you are using the mega128's internal watchdog the easiest way is to disable 
interrupts and then do a while(1);
Simon

On Wednesday 05 April 2006 11:48, [EMAIL PROTECTED] wrote:
> Hi all:
>
> I have on my Mega128 a kernel running with a command processor. A
> command I'd like to add is a reset command, to return the processor to
> the initial state. I thought I could do this with setjmp/longjmp, but it
> just seems to hang the processor.
>
> Is there an easy way to do it without toggling a hardware line?
>
> Cheers,
> Matthew van de Werken - Electronics Engineer
> CSIRO E&M - Rock Mass Characterisation - 1 Technology Court - Pullenvale
> - 4069
> p: (07) 3327 4142 * f: (07) 3327 4455 * e: [EMAIL PROTECTED]
> "We do not inherit the earth from our ancestors, we borrow it from our
> children."
> -- Native American Proverb
>
>
> _______________________________________________
> AVR-chat mailing list
> [email protected]
> http://lists.nongnu.org/mailman/listinfo/avr-chat

-- 
Simon Eatough
Development Engineer
Pertronic Industries
Wellington
NZ


_______________________________________________
AVR-chat mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-chat

Reply via email to