34 #include "lib/sensors.h"
35 #include "dev/hwconf.h"
36 #include "dev/button-sensor.h"
37 #include "isr_compat.h"
41 static struct timer debouncetimer;
42 static int status(
int type);
44 HWCONF_PIN(BUTTON, 2, 5);
45 HWCONF_IRQ(BUTTON, 2, 5);
50 ENERGEST_ON(ENERGEST_TYPE_IRQ);
52 if(BUTTON_CHECK_IRQ()) {
60 ENERGEST_OFF(ENERGEST_TYPE_IRQ);
70 configure(
int type,
int c)
77 BUTTON_IRQ_EDGE_SELECTD();
98 return BUTTON_IRQ_ENABLED();
104 value, configure, status);