Hi, > I found in "signal.h" this line: > #define _RESET() void __attribute__ ((naked)) _reset_vector__(void) > > -Can anyone explain me what this function does precisely since I must write > my own?
rtfs, but it looks like the code at which the reset vector points to is
executed.
The ANSI-C version, which i prefer, is
#define mc_RESET (*(void(**)(void))(0xfffe))()
but some do prefer
#define mc_RESET { WDTCTL = 0xDEAD }
to get a reset from the watchdog.
Regards,
Rolf
