button-sensor.c

00001 
00002 #include "dev/button-sensor.h"
00003 
00004 const struct sensors_sensor button_sensor;
00005 
00006 /*---------------------------------------------------------------------------*/
00007 void
00008 button_press(void)
00009 {
00010   sensors_changed(&button_sensor);
00011 }
00012 /*---------------------------------------------------------------------------*/
00013 static unsigned int
00014 value(int type)
00015 {
00016   return 0;
00017 }
00018 /*---------------------------------------------------------------------------*/
00019 static int
00020 configure(int type, void *c)
00021 {
00022   return 0;
00023 }
00024 /*---------------------------------------------------------------------------*/
00025 static void *
00026 status(int type)
00027 {
00028   return NULL;
00029 }
00030 /*---------------------------------------------------------------------------*/
00031 SENSORS_SENSOR(button_sensor, BUTTON_SENSOR,
00032                value, configure, status);

Generated on Mon Apr 11 14:23:42 2011 for Contiki 2.5 by  doxygen 1.6.1