Gary Lee <gary.lee1978 <at> gmail.com> writes:

> 
> Hi,I use TinyOS 2.0.2 based on Ubuntu 9.1. The hardware is MicaZ + MDA300 and 
an external sensor.The MDA300 driver I am using is the newly posted MDA300 
driver on:http://tinyos.cvs.sourceforge.net/viewvc/tinyos/tinyos-2.x-
contrib/uoit/I write a simple application, which has the following two 
lines:components new SensorMDA300CA() as Sensor;App.Read -> Sensor.ADC_0;when I 
compile, I got the following strange partial errors:"/opt/tinyos-
2.0.2/tos/chips/atm128/i2c/Atm128I2CMasterP.nc:46: syntax error before 
`TI2CBasicAddr","/opt/tinyos-2.0.2/tos/interfaces/I2CPacket.nc:63: syntax error 
before `flags'/opt/tinyos-2.0.2/tos/interfaces/I2CPacket.nc:79: syntax error 
before `flags'"??Could someone tell me why I have some errors?
Thanks,Gary=================Below is the partial compile output.In component 
`BlinkToRadioC':BlinkToRadioC.nc: In function `Timer0.fired':
> BlinkToRadioC.nc:113: warning: passing argument 2 of `Packet.getPayload' 
> makes 
pointer from integer without a cast/opt/tinyos-
2.0.2/tos/interfaces/ResourceConfigure.nc:23:1: warning: "/*" within comment
> In file included from /opt/tinyos-
2.0.2/tos/chips/atm128/i2c/Atm128I2CMasterC.nc:45,                 from 
/opt/tinyos-2.0.2/tos/sensorboards/mda300ca/MDA3XXADCC.nc:15,                 
from /opt/tinyos-2.0.2/tos/sensorboards/mda300ca/ADCDeviceC.nc:32,
>                  from /opt/tinyos-
2.0.2/tos/sensorboards/mda300ca/SensorMDA300CA.nc:47,                 from 
BlinkToRadioAppC.nc:55:In interface `I2CPacket':/opt/tinyos-
2.0.2/tos/interfaces/I2CPacket.nc: At top level:
> /opt/tinyos-2.0.2/tos/interfaces/I2CPacket.nc:63: syntax error before 
`flags'/opt/tinyos-2.0.2/tos/interfaces/I2CPacket.nc:79: syntax error before 
`flags'In component `Atm128I2CMasterC':/opt/tinyos-
2.0.2/tos/chips/atm128/i2c/Atm128I2CMasterC.nc:45: syntax error before 
`TI2CBasicAddr'
> In file included from /opt/tinyos-
2.0.2/tos/chips/atm128/i2c/Atm128I2CMasterC.nc:52,                 from 
/opt/tinyos-2.0.2/tos/sensorboards/mda300ca/MDA3XXADCC.nc:15,                 
from /opt/tinyos-2.0.2/tos/sensorboards/mda300ca/ADCDeviceC.nc:32,
>                  from /opt/tinyos-
2.0.2/tos/sensorboards/mda300ca/SensorMDA300CA.nc:47,                 from 
BlinkToRadioAppC.nc:55:In component `Atm128I2CMasterP':/opt/tinyos-
2.0.2/tos/chips/atm128/i2c/Atm128I2CMasterP.nc:46: syntax error before 
`TI2CBasicAddr'
> In file included from /opt/tinyos-
2.0.2/tos/chips/atm128/i2c/Atm128I2CMasterP.nc:55,                 from 
/opt/tinyos-2.0.2/tos/chips/atm128/i2c/Atm128I2CMasterC.nc:52,                 
from /opt/tinyos-2.0.2/tos/sensorboards/mda300ca/MDA3XXADCC.nc:15,
>                  from /opt/tinyos-
2.0.2/tos/sensorboards/mda300ca/ADCDeviceC.nc:32,                 from 
/opt/tinyos-
2.0.2/tos/sensorboards/mda300ca/SensorMDA300CA.nc:47,                 from 
BlinkToRadioAppC.nc:55:

Hello Gary,

   Do you figure out the problem?  I think the driver has some problems. I'm 
using MDA320+IRIS with tinyos2.x. Can you set the ports on the MDA300? 


Thanks,
Haixia Li


_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to