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
48const struct sensors_sensor temperature_sensor;
54 return TEMPERATURE_MEM;
60 return sky_sensors_configure(INPUT_CHANNEL, INPUT_REFERENCE, type, c);
66 return sky_sensors_status(INPUT_CHANNEL, type);
69SENSORS_SENSOR(temperature_sensor, TEMPERATURE_SENSOR,
static int configure(int type, int c)
Configures temperature sensor.
static int value(int type)
Returns device temperature.
static int status(int type)
Return temperature sensor status.