When I wanna program a microcontoller i get the following warning:
Warning[Pe111]: statement is unreachable
How can I solve that?
Thanks in advance!
Code://Leds on P1.0 + P1.1 + P1.2 + P1.3 +P1.4 + P1.5 + P1.6 //SW1 on P1.4 // //****************************** #include "msp430x20x1.h" int main(void) { P1DIR=0x7F; // BIT0 t/m BIT6 = Output | BIT7 = SW1 while(1) { P1OUT=P1IN<<2; // P1OUT = P1IN shifted to places to the left. } return 0; }