mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-29 13:29:09 +00:00
33 lines
778 B
C
33 lines
778 B
C
|
|
#include "dev/button-sensor.h"
|
|
|
|
const struct sensors_sensor button_sensor;
|
|
|
|
/*---------------------------------------------------------------------------*/
|
|
void
|
|
button_press(void)
|
|
{
|
|
sensors_changed(&button_sensor);
|
|
}
|
|
/*---------------------------------------------------------------------------*/
|
|
static unsigned int
|
|
value(int type)
|
|
{
|
|
return 0;
|
|
}
|
|
/*---------------------------------------------------------------------------*/
|
|
static int
|
|
configure(int type, void *c)
|
|
{
|
|
return 0;
|
|
}
|
|
/*---------------------------------------------------------------------------*/
|
|
static void *
|
|
status(int type)
|
|
{
|
|
return NULL;
|
|
}
|
|
/*---------------------------------------------------------------------------*/
|
|
SENSORS_SENSOR(button_sensor, BUTTON_SENSOR,
|
|
value, configure, status);
|