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