mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-24 22:32:23 +00:00
33 lines
765 B
C
33 lines
765 B
C
|
|
#include "dev/button-sensor.h"
|
|
|
|
const struct sensors_sensor button_sensor;
|
|
|
|
/*---------------------------------------------------------------------------*/
|
|
void
|
|
button_press(void)
|
|
{
|
|
sensors_changed(&button_sensor);
|
|
}
|
|
/*---------------------------------------------------------------------------*/
|
|
static int
|
|
value(int type)
|
|
{
|
|
return 0;
|
|
}
|
|
/*---------------------------------------------------------------------------*/
|
|
static int
|
|
configure(int type, int value)
|
|
{
|
|
return 0;
|
|
}
|
|
/*---------------------------------------------------------------------------*/
|
|
static int
|
|
status(int type)
|
|
{
|
|
return 0;
|
|
}
|
|
/*---------------------------------------------------------------------------*/
|
|
SENSORS_SENSOR(button_sensor, BUTTON_SENSOR,
|
|
value, configure, status);
|