40 #include "dev/battery-sensor.h"
43 const struct sensors_sensor battery_sensor;
44 static unsigned int battery_value;
50 battery_value = ADC12MEM6;
61 configure(
int type,
int value)
69 if(!irq_adc12_active(6)) {
70 irq_adc12_activate(6, (INCH_4 + SREF_0), irq);
73 irq_adc12_deactivate(6);
86 return irq_adc12_active(6);
91 SENSORS_SENSOR(battery_sensor, BATTERY_SENSOR,
92 value, configure, status);