hello,
i was able to compile the following program with the command
msp430-gcc -mmcu=msp430x149 -Wall -pedantic hello.c -o hello
then i load hello into msp430-insight by opening the file.
i get this error in the command line and i don't know what it means.
0x113e <_unexpected_>: reti
please advise. thanks.
ml
****************************
/* this is a simple blink test*/
#include <stdio.h>
#include <stdlib.h>
#include <io.h>
void main(void){
int i;
int test =0;
WDTCTL = WDTPW + WDTHOLD;
/*set the outputs*/
P2DIR |= 0x80; /*set yellow*/
P4DIR |= 0x80; /*set green*/
P6DIR |= 0x80; /*set red*/
#define MY_WAIT for(i = 0; i< 20000; i++);
/*turn off all the lights*/
/*turn off yellow*/
P2OUT |= 0x80;
/*turn off green*/
P4OUT |= 0x80;
/*turn off red*/
P6OUT |= 0x80;
for(;;){
test = test +1;
/*turn on yellow*/
P2OUT &= 0x7F;
MY_WAIT
/*turn off yellow*/
P2OUT |= 0x80;
MY_WAIT
/*turn on green*/
P4OUT &= 0x7F;
MY_WAIT
/*turn off green*/
P4OUT |= 0x80;
MY_WAIT
/*turn on red*/
P6OUT &= 0x7F;
MY_WAIT
/*turn off red*/
P6OUT |= 0x80;
MY_WAIT
if ( test == 10) break;
}
}