34 #include "dev/vib-sensor.h"
36 #include "dev/hwconf.h"
38 const struct sensors_sensor vib_sensor;
40 static unsigned int vib;
43 HWCONF_PIN(VIB, 1, VIB_IRQ());
44 HWCONF_IRQ(VIB, 1, VIB_IRQ());
51 sensors_changed(&vib_sensor);
62 configure(
int type,
int value)
72 if(!VIB_IRQ_ENABLED()) {
73 irq_port1_activate(VIB_IRQ(), irq);
78 irq_port1_deactivate(VIB_IRQ());
91 return VIB_IRQ_ENABLED();
96 SENSORS_SENSOR(vib_sensor, VIB_SENSOR,
97 value, configure, status);