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