adapt to msp430g2