42 #include "dev/temperature-sensor.h"
43 #include "dev/sky-sensors.h"
45 #define INPUT_CHANNEL (1 << INCH_10)
46 #define INPUT_REFERENCE SREF_1
47 #define TEMPERATURE_MEM ADC12MEM10
49 const struct sensors_sensor temperature_sensor;
55 return TEMPERATURE_MEM;
59 configure(
int type,
int c)
61 return sky_sensors_configure(INPUT_CHANNEL, INPUT_REFERENCE, type, c);
67 return sky_sensors_status(INPUT_CHANNEL, type);
70 SENSORS_SENSOR(temperature_sensor, TEMPERATURE_SENSOR,
71 value, configure, status);