35 #include "dev/acc-sensor.h"
37 const struct sensors_sensor acc_sensor;
38 static uint8_t active;
57 ADC12CTL1 &= ~CONSEQ_3;
61 ADC12MCTL2 = (INCH_4 + SREF_1);
62 ADC12MCTL3 = (INCH_5 + SREF_1);
63 ADC12MCTL4 = (INCH_6 + SREF_1);
65 ADC12MCTL5 = (INCH_10 + SREF_1);
67 ADC12CTL1 |= CONSEQ_3;
68 ADC12CTL0 |= ENC | ADC12SC;
70 Irq_adc12_activate(&acc_sensor, 6, (INCH_11 + SREF_1));
79 irq_adc12_deactivate(&acc_sensor, 6);
104 configure(
int type,
int value)
106 if(type == SENSORS_ACTIVE) {
129 SENSORS_SENSOR(acc_sensor, ACC_SENSOR, value, configure, status);