removed obsolete structure

This commit is contained in:
nifi 2010-01-14 13:55:21 +00:00
parent 4a3953204f
commit 1d592b5680
2 changed files with 3 additions and 7 deletions

View File

@ -28,7 +28,7 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* @(#)$Id: sensors.c,v 1.3 2010/01/14 13:29:56 joxe Exp $ * @(#)$Id: sensors.c,v 1.4 2010/01/14 13:55:21 nifi Exp $
*/ */
/* exeperimental code, will be renamed to sensors.c when done */ /* exeperimental code, will be renamed to sensors.c when done */
@ -41,7 +41,6 @@
extern struct sensors_sensor *sensors[]; extern struct sensors_sensor *sensors[];
extern unsigned char sensors_flags[]; extern unsigned char sensors_flags[];
extern struct process *sensors_selecting_proc[];
#define FLAG_CHANGED 0x80 #define FLAG_CHANGED 0x80
@ -108,8 +107,6 @@ PROCESS_THREAD(sensors_process, ev, data)
PROCESS_BEGIN(); PROCESS_BEGIN();
sensors_platform_init();
sensors_event = process_alloc_event(); sensors_event = process_alloc_event();
for(i = 0; sensors[i] != NULL; ++i) { for(i = 0; sensors[i] != NULL; ++i) {

View File

@ -28,7 +28,7 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* @(#)$Id: sensors.h,v 1.3 2010/01/14 13:29:56 joxe Exp $ * @(#)$Id: sensors.h,v 1.4 2010/01/14 13:55:21 nifi Exp $
*/ */
#ifndef __SENSORS_H__ #ifndef __SENSORS_H__
@ -51,8 +51,7 @@ const struct sensors_sensor name = { type, value, configure, status }
#define SENSORS(...) \ #define SENSORS(...) \
const struct sensors_sensor *sensors[] = {__VA_ARGS__, NULL}; \ const struct sensors_sensor *sensors[] = {__VA_ARGS__, NULL}; \
unsigned char sensors_flags[SENSORS_NUM]; \ unsigned char sensors_flags[SENSORS_NUM];
struct process *sensors_selecting_proc[SENSORS_NUM]
struct sensors_sensor { struct sensors_sensor {
char * type; char * type;