I thought this would have been fixed in tinyos 2.1 (I just upgraded), and was
wondering if I've just doing something wrong all this time to get the I2C port
to work (like in my Makefile).
In order to get I2C working, I have to rename tos/chips/atm128/Atm128I2C.h, so
tinyos won't see it, because there are two header files that reference the same
types and they conflict.
Any thoughts?
Kurt
Here's a part of the error message, in case you care:
[code]
/opt/tinyos-2.1.0/tos/chips/atm128/Atm128I2C.h:39: syntax error before
`Atm128_TWBR_t'
/opt/tinyos-2.1.0/tos/chips/atm128/Atm128I2C.h:78: conflicting types for
`Atm128_TWCR_t'
/opt/tinyos-2.1.0/tos/chips/atm128/Atm128I2C.h:55: previous declaration of
`Atm128_TWCR_t'
<snip>
/opt/tinyos-2.1.0/tos/chips/atm128/i2c/Atm128I2CMasterC.nc:49:
`UQ_ATM128_I2CMASTER' undeclared here (not in a function)
/opt/tinyos-2.1.0/tos/chips/atm128/i2c/Atm128I2CMasterC.nc:49: argument 1 to
magic function `unique' is not constant
/opt/tinyos-2.1.0/tos/chips/atm128/i2c/Atm128I2CMasterC.nc:49: enumerator value
for `CLIENT_ID' not integer constant
In file included from
/opt/tinyos-2.1.0/tos/chips/atm128/i2c/Atm128I2CMasterC.nc:52,
from EasyDisseminationAppC.nc:46:
In component `Atm128I2CMasterP':
/opt/tinyos-2.1.0/tos/chips/atm128/i2c/Atm128I2CMasterP.nc:50:
`UQ_ATM128_I2CMASTER' undeclared here (not in a function)
/opt/tinyos-2.1.0/tos/chips/atm128/i2c/Atm128I2CMasterP.nc:50: argument 1 to
magic function `uniqueCount' is not constant
/opt/tinyos-2.1.0/tos/chips/atm128/i2c/Atm128I2CMasterP.nc:50: enumerator value
for `ATM128_I2C_CLIENT_COUNT' not integer constant
/opt/tinyos-2.1.0/tos/chips/atm128/i2c/Atm128I2CMasterP.nc:53:
`UQ_ATM128_I2CMASTER' undeclared here (not in a function)
In file included from
/opt/tinyos-2.1.0/tos/chips/atm128/i2c/Atm128I2CMasterP.nc:56,
from
/opt/tinyos-2.1.0/tos/chips/atm128/i2c/Atm128I2CMasterC.nc:52,
[/code]
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help