mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
use three different input channels for the accelerometer.
This commit is contained in:
parent
918616a1bf
commit
5631c92416
@ -57,8 +57,8 @@ adc_init(void)
|
|||||||
|
|
||||||
/* P60: A0 */
|
/* P60: A0 */
|
||||||
ADC12MCTL0 = INCH_0 | SREF_0;
|
ADC12MCTL0 = INCH_0 | SREF_0;
|
||||||
ADC12MCTL1 = INCH_0 | SREF_0;
|
ADC12MCTL1 = INCH_1 | SREF_0;
|
||||||
ADC12MCTL2 = INCH_0 | SREF_0;
|
ADC12MCTL2 = INCH_2 | SREF_0;
|
||||||
|
|
||||||
/* P61: A1 */
|
/* P61: A1 */
|
||||||
ADC12MCTL3 = ADC12MCTL4 = ADC12MCTL5 = INCH_1 | SREF_0;
|
ADC12MCTL3 = ADC12MCTL4 = ADC12MCTL5 = INCH_1 | SREF_0;
|
||||||
|
Loading…
Reference in New Issue
Block a user