Hi
r u using VoltageC from tos/system if not use this as this is the configuration for VoltageM and it includes voltage.h
if ur using VoltageC then It seems like you dont have the voltage.h file in tos/platform/mica2 if u dont just download the attached file
Rahul Sawant
On 4/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hey all,
IM trying to use the VoltageM component with mica2 tinyos-1.1.15, as it
returns the actually voltage in mv. However, when I compile i get these errors:
C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/mica2/VoltageM.nc: In function `Std
Control.start':
C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/mica2/VoltageM.nc:67: `TOS_ADC_VOLT
AGE_PORT' undeclared (first use in this function)
C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/mica2/VoltageM.nc:67: (Each undecla
red identifier is reported only once
C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/mica2/VoltageM.nc:67: for each func
tion it appears in.)
C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/mica2/VoltageM.nc:68: `TOSH_ACTUAL_
VOLTAGE_PORT' undeclared (first use in this function)
make: *** [exe0] Error 1
Any ideas??? thanks so much
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
// $Id: Voltage.h,v 1.1 2005/03/16 05:12:29 jwhui Exp $ /* tab:2 * * * "Copyright (c) 2000-2005 The Regents of the University of California. * All rights reserved. * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose, without fee, and without written agreement is * hereby granted, provided that the above copyright notice, the following * two paragraphs and the author appear in all copies of this software. * * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF * CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS." * */
/**
* @author Jonathan Hui <[EMAIL PROTECTED]>
*/
#ifndef __VOLTAGE_H__
#define __VOLTAGE_H__
enum {
TOS_ADC_VOLTAGE_PORT = 7,
TOSH_ACTUAL_VOLTAGE_PORT = 7,
};
#endif
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
