I have global variables defined outside of main....Within main I run a certain block of code and then
WDCTL = 0xDEAD;
which resets the part. I can see all my configuration getting done HOWEVER I noticed that global variables were NOT being re-initialized to there former settings. How do I do this?
for instance I have a global defined as:
volatile boolean transmitter = F;
after running code this get's set to T, I expected that the incorrect password to the watchdog would reset to the beginning of main (which it did) and reset all the variables to their initial values?