Hello,
I am kicking the dust off of a few old projects as I get back into MSP430 programming. I noticed that the function below did not work when the variable "count" was defined in the function. If I define the variable globally the program executes. It seems that the latest build of CCS has made the change.
I am not a master in C programming but this seems odd. I can't see having to define all function variables globally in order for them to work. Larger projects would become messy quickly. Is there a setting I have turned off or am I messing something up? The function is declared before main incase you are wondering.
voiddelay (void)
{
unsigned int count;
for (count = 0; count < DELAY; count++);
}
Take care,
Jon