MSP430 – GCC

Photo of author

By Jackson Taylor

Energia is GCC based open source IDE. Since it contain GCC, we can use Energia  to make program which saves memory size by using GCC in it. Here is code for blinking. See the memory usage difference…!!!!!!
unsigned long int i;
void setup()
{              
 P1DIR = 0x41;
 P1OUT=0;
}
void loop()
{
  P1OUT=0x41;
for(i=0;i<950000;i++);
 P1OUT=0x0;
for(i=0;i<950000;i++);
}