>
> #define mc_RESET (*(void(**)(void))(0xfffe))()
> // alternate version:
> // #define mc_RESET { WDTCTL = 0xDEAD }
>

Your first version of mc_RESET is a very bad idea - it will not cause a
reset, so all peripherals in the device will still be set as they were when
the "reset" function/interrupt was called.  Using the watchdog to force a
real reset is much better.




Reply via email to