39 #include "dev/battery-sensor.h"
40 #include "dev/sky-sensors.h"
44 #define INPUT_CHANNEL (1 << INCH_11)
45 #define INPUT_REFERENCE SREF_1
46 #define BATTERY_MEM ADC12MEM11
48 const struct sensors_sensor battery_sensor;
57 configure(
int type,
int c)
59 return sky_sensors_configure(INPUT_CHANNEL, INPUT_REFERENCE, type, c);
65 return sky_sensors_status(INPUT_CHANNEL, type);
68 SENSORS_SENSOR(battery_sensor, BATTERY_SENSOR, value, configure, status);