Hello everyone,
I am trying to interface telosb with adxl345 accelerometer on tinyos 2.1.2.
I am using the code in /apps/test/z1/accelerometer/adxl345 but it is not
compiling on telosb. it gives me the following error.
In file included from TestADXL345AppC.nc:53:
In component `ADXL345C':
/opt/tinyos-2.1.2/tos/chips/adxl345/ADXL345C.nc:71: syntax error before `('
/opt/tinyos-2.1.2/tos/chips/adxl345/ADXL345C.nc:72: syntax error before `('
/opt/tinyos-2.1.2/tos/chips/adxl345/ADXL345C.nc:73: syntax error before `('
/opt/tinyos-2.1.2/tos/chips/adxl345/ADXL345C.nc:74: syntax error before `('
make: *** [exe0] Error 1
Line 53 in TestADXL345AppC is components new ADXL345C();
and lines in ADXL345C file are
components new Msp430I2C1C() as I2C;
ADXL345P.Resource -> I2C;
ADXL345P.ResourceRequested -> I2C;
ADXL345P.I2CBasicAddr -> I2C;
can anyone please let me know how do i resolve this issue?
thanks
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help