use three different input channels for the accelerometer.

This commit is contained in:
nvt-se 2008-03-27 13:04:59 +00:00
parent 918616a1bf
commit 5631c92416

View File

@ -57,8 +57,8 @@ adc_init(void)
/* P60: A0 */
ADC12MCTL0 = INCH_0 | SREF_0;
ADC12MCTL1 = INCH_0 | SREF_0;
ADC12MCTL2 = INCH_0 | SREF_0;
ADC12MCTL1 = INCH_1 | SREF_0;
ADC12MCTL2 = INCH_2 | SREF_0;
/* P61: A1 */
ADC12MCTL3 = ADC12MCTL4 = ADC12MCTL5 = INCH_1 | SREF_0;