[quote user="Vytautas Bau��a"] P1SEL |= (BIT1|BIT2|BIT4|BIT5)|(~BIT3);
P1SEL2 |= BIT1 + BIT2 + BIT4 + BIT5;[/quote]
You shall read msp430g2553 datasheet, "Table 16. Port P1 (P1.0 to P1.2) Pin Functions", "Table 18. Port P1 (P1.4) Pin Functions" and other pin function tables of pins you use.