41 #include "dev/temperature-sensor.h"
42 #include "dev/sky-sensors.h"
44 #define INPUT_CHANNEL (1 << INCH_10)
45 #define INPUT_REFERENCE SREF_1
46 #define TEMPERATURE_MEM ADC12MEM10
54 return TEMPERATURE_MEM;
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);
70 value, configure, status);
struct sensors_sensor temperature_sensor
NOTE: For the temperature measurement, the ADC extended range mode is needed; but this is inaccurate ...