42 #include "dev/ext-sensor.h"
43 #include "dev/sky-sensors.h"
52 #define INPUT_CHANNEL ((1 << INCH_0) | (1 << INCH_1) | \
53 (1 << INCH_2) | (1 << INCH_3))
54 #define INPUT_REFERENCE SREF_0
55 #define EXT_MEM0 ADC12MEM0
56 #define EXT_MEM1 ADC12MEM1
57 #define EXT_MEM2 ADC12MEM2
58 #define EXT_MEM3 ADC12MEM3
60 const struct sensors_sensor ext_sensor;
84 return sky_sensors_status(INPUT_CHANNEL, type);
88 configure(
int type,
int c)
90 return sky_sensors_configure(INPUT_CHANNEL, INPUT_REFERENCE, type, c);
93 SENSORS_SENSOR(ext_sensor,
"Ext", value, configure, status);