35 #include "dev/radio-sensor.h"
37 #include "dev/tr1001.h"
39 const struct sensors_sensor radio_sensor;
41 unsigned int radio_sensor_signal;
47 radio_sensor_signal = ADC12MEM5;
55 case RADIO_SENSOR_LAST_PACKET:
57 case RADIO_SENSOR_LAST_VALUE:
59 return radio_sensor_signal;
64 configure(
int type,
int value)
69 radio_sensor_signal = 0;
73 if(!irq_adc12_active(5)) {
74 irq_adc12_activate(5, (INCH_5 + SREF_0), irq);
77 irq_adc12_deactivate(5);
78 radio_sensor_signal = 0;
91 return irq_adc12_active(5);
96 SENSORS_SENSOR(radio_sensor, RADIO_SENSOR,
97 value, configure, status);