38 #include "dev/potentiometer-sensor.h"
39 #include "dev/sky-sensors.h"
43 #define INPUT_CHANNEL (1 << INCH_4)
44 #define INPUT_REFERENCE SREF_0
45 #define POTENTIOMETER_MEM ADC12MEM4
47 const struct sensors_sensor battery_sensor;
52 return POTENTIOMETER_MEM;
56 configure(
int type,
int c)
58 return sky_sensors_configure(INPUT_CHANNEL, INPUT_REFERENCE, type, c);
64 return sky_sensors_status(INPUT_CHANNEL, type);
67 SENSORS_SENSOR(potentiometer_sensor, POTENTIOMETER_SENSOR, value, configure, status);