40 #include "dev/battery-sensor.h"
41 #include "dev/sky-sensors.h"
45 #define INPUT_CHANNEL (1 << INCH_11)
46 #define INPUT_REFERENCE SREF_1
47 #define BATTERY_MEM ADC12MEM11
49 const struct sensors_sensor battery_sensor;
58 configure(
int type,
int c)
60 return sky_sensors_configure(INPUT_CHANNEL, INPUT_REFERENCE, type, c);
66 return sky_sensors_status(INPUT_CHANNEL, type);
69 SENSORS_SENSOR(battery_sensor, BATTERY_SENSOR, value, configure, status);