36 #include "lib/sensors.h"
37 #include "dev/button-sensor.h"
43 const struct sensors_sensor button_sensor2;
45 static struct timer debouncetimer;
46 static int status(
int type);
51 sensors_changed(&button_sensor2);
63 configure(
int type,
int c)
68 if(!status(SENSORS_ACTIVE)) {
88 return bit_is_set(*CRM_WU_CNTL, 21);
93 SENSORS_SENSOR(button_sensor2, BUTTON_SENSOR,
94 value, configure, status);
void timer_set(struct timer *t, clock_time_t interval)
Set a timer.
int timer_expired(struct timer *t)
Check if a timer has expired.
#define CLOCK_SECOND
A second, measured in system clock time.