fixed for updated sensors API

This commit is contained in:
joxe 2010-01-14 15:50:13 +00:00
parent fe126bc90e
commit 3c0dcb45c7
8 changed files with 37 additions and 37 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, Swedish Institute of Computer Science
* Copyright (c) 2005-2010, Swedish Institute of Computer Science
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* @(#)$Id: light-sensor.c,v 1.1 2010/01/14 13:53:06 joxe Exp $
* @(#)$Id: light-sensor.c,v 1.2 2010/01/14 15:50:14 joxe Exp $
*/
#include <stdlib.h>
@ -66,7 +66,7 @@ static light_sensor_init(void)
}
/*---------------------------------------------------------------------------*/
static unsigned int
static int
value(int type)
{
/* should be constants */
@ -79,7 +79,7 @@ value(int type)
return 0;
}
/*---------------------------------------------------------------------------*/
static void *
static int
status(int type)
{
switch (type) {
@ -87,12 +87,12 @@ status(int type)
case SENSORS_READY:
return (ADC12CTL0 & (ADC12ON + REFON)) == (ADC12ON + REFON);
}
return NULL;
return 0;
}
/*---------------------------------------------------------------------------*/
static int
configure(int type, void *c)
configure(int type, int c)
{
switch (type) {
case SENSORS_ACTIVE: