Updated to match the new sensors API

This commit is contained in:
adamdunkels 2010-01-14 15:38:56 +00:00
parent dd6922906c
commit fe126bc90e
7 changed files with 7 additions and 205 deletions

View file

@ -10,33 +10,6 @@ button_press(void)
sensors_changed(&button_sensor);
}
/*---------------------------------------------------------------------------*/
static void
init(void)
{
}
/*---------------------------------------------------------------------------*/
static int
irq(void)
{
return 0;
}
/*---------------------------------------------------------------------------*/
static void
activate(void)
{
}
/*---------------------------------------------------------------------------*/
static void
deactivate(void)
{
}
/*---------------------------------------------------------------------------*/
static int
active(void)
{
return 1;
}
/*---------------------------------------------------------------------------*/
static unsigned int
value(int type)
{
@ -56,5 +29,4 @@ status(int type)
}
/*---------------------------------------------------------------------------*/
SENSORS_SENSOR(button_sensor, BUTTON_SENSOR,
init, irq, activate, deactivate, active,
value, configure, status);