34 #include "lib/sensors.h"
36 #include "dev/button-sensor.h"
39 const struct sensors_sensor button_sensor;
41 static struct timer debouncetimer;
53 BUTTON_IRQ_EDGE_SELECTD();
62 if(BUTTON_CHECK_IRQ()) {
65 sensors_changed(&button_sensor);
76 sensors_add_irq(&button_sensor, BUTTON_IRQ_PORT());
84 sensors_remove_irq(&button_sensor, BUTTON_IRQ_PORT());
90 return BUTTON_IRQ_ENABLED();
100 configure(
int type,
void *c)
111 SENSORS_SENSOR(button_sensor, BUTTON_SENSOR,
112 init, irq, activate, deactivate, active,
113 value, configure, status);