Updated with the new sensors API

This commit is contained in:
adamdunkels 2010-01-15 08:50:39 +00:00
parent fab672c7ba
commit 2f19892f74

View file

@ -29,45 +29,18 @@
* This file is part of the Configurable Sensor Network Application * This file is part of the Configurable Sensor Network Application
* Architecture for sensor nodes running the Contiki operating system. * Architecture for sensor nodes running the Contiki operating system.
* *
* $Id: dummy-sensors.c,v 1.2 2006/10/06 08:25:31 adamdunkels Exp $ * $Id: dummy-sensors.c,v 1.3 2010/01/15 08:50:39 adamdunkels Exp $
* *
* ----------------------------------------------------------------- * -----------------------------------------------------------------
* *
* Author : Adam Dunkels, Joakim Eriksson, Niclas Finne * Author : Adam Dunkels, Joakim Eriksson, Niclas Finne
* Created : 2005-11-01 * Created : 2005-11-01
* Updated : $Date: 2006/10/06 08:25:31 $ * Updated : $Date: 2010/01/15 08:50:39 $
* $Revision: 1.2 $ * $Revision: 1.3 $
*/ */
#include "dev/temperature-sensor.h" #include "dev/temperature-sensor.h"
/*---------------------------------------------------------------------------*/
static void
init(void)
{
}
/*---------------------------------------------------------------------------*/
static int
irq(void)
{
return 0;
}
/*---------------------------------------------------------------------------*/
static void
activate(void)
{
}
/*---------------------------------------------------------------------------*/
static void
deactivate(void)
{
}
/*---------------------------------------------------------------------------*/
static int
active(void)
{
return 0;
}
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
static unsigned int static unsigned int
value(int type) value(int type)
@ -88,5 +61,4 @@ status(int type)
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
SENSORS_SENSOR(temperature_sensor, TEMPERATURE_SENSOR, SENSORS_SENSOR(temperature_sensor, TEMPERATURE_SENSOR,
init, irq, activate, deactivate, active,
value, configure, status); value, configure, status);