From 5631c92416ed7da0a81b52aff33237e033ab2c7e Mon Sep 17 00:00:00 2001 From: nvt-se Date: Thu, 27 Mar 2008 13:04:59 +0000 Subject: [PATCH] use three different input channels for the accelerometer. --- platform/msb430/dev/adc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/msb430/dev/adc.c b/platform/msb430/dev/adc.c index 05edd7174..f29a642a2 100644 --- a/platform/msb430/dev/adc.c +++ b/platform/msb430/dev/adc.c @@ -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;