2006-06-18 00:41:10 +02:00
|
|
|
|
|
|
|
#include "dev/button-sensor.h"
|
|
|
|
|
|
|
|
const struct sensors_sensor button_sensor;
|
|
|
|
|
|
|
|
/*---------------------------------------------------------------------------*/
|
|
|
|
void
|
|
|
|
button_press(void)
|
|
|
|
{
|
|
|
|
sensors_changed(&button_sensor);
|
|
|
|
}
|
|
|
|
/*---------------------------------------------------------------------------*/
|
2011-12-19 13:50:50 +01:00
|
|
|
static int
|
2006-06-18 00:41:10 +02:00
|
|
|
value(int type)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
/*---------------------------------------------------------------------------*/
|
|
|
|
static int
|
2011-12-19 13:50:50 +01:00
|
|
|
configure(int type, int value)
|
2006-06-18 00:41:10 +02:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
/*---------------------------------------------------------------------------*/
|
2011-12-19 13:50:50 +01:00
|
|
|
static int
|
2006-06-18 00:41:10 +02:00
|
|
|
status(int type)
|
|
|
|
{
|
2011-12-19 13:50:50 +01:00
|
|
|
return 0;
|
2006-06-18 00:41:10 +02:00
|
|
|
}
|
|
|
|
/*---------------------------------------------------------------------------*/
|
|
|
|
SENSORS_SENSOR(button_sensor, BUTTON_SENSOR,
|
|
|
|
value, configure, status);
|