Am trying to interface Telosb mote with ADXL345 accelerometer sensor. Am
using the sample program available from
http://zolertia.sourceforge.net/wiki/index.php/Mainpage:TOS_basic#Move_your_body.2C_sense_the_accelerometer


Have solved some initial errors while compiling. But not able to solve this
compilation error.

$ make telosb
mkdir -p build/telosb
    compiling AccelerometerAppC to a telosb binary
ncc -o build/telosb/main.exe  -Os -O -mdisable-hwmul -fnesc-separator=__
-Wall -
Wshadow -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board=
-DDEFI
NED_TOS_AM_GROUP=0x22 -I/opt/tinyos-2.x/tos/lib/printf
-I/opt/tinyos-2.x/tos/chi
ps/adxl345 -DIDENT_APPNAME=\"AccelerometerAp\"
-DIDENT_USERNAME=\"Prasanth\" -DI
DENT_HOSTNAME=\"cdac-66662b01fa\" -DIDENT_USERHASH=0x7de52accL
-DIDENT_TIMESTAMP
=0x4f69bc49L -DIDENT_UIDHASH=0x8b2c4d48L  AccelerometerAppC.nc -lm
In file included from AccelerometerAppC.nc:17:
In component `ADXL345C':
/opt/tinyos-2.x/tos/chips/adxl345/ADXL345C.nc:71: syntax error before `0x20'
/opt/tinyos-2.x/tos/chips/adxl345/ADXL345C.nc:72: syntax error before `0x20'
/opt/tinyos-2.x/tos/chips/adxl345/ADXL345C.nc:73: syntax error before `0x20'
/opt/tinyos-2.x/tos/chips/adxl345/ADXL345C.nc:74: syntax error before `0x20'
make: *** [exe0] Error 1


Am getting some "syntax error before `0x20' ADXL345C.nc" file. But that
file itself doesn't contain such a line.

Have attached the ADXL345C.nc file.

Anybody having some idea regarding this, please respond. All kinds of
suggestions are welcome.

Thanks in Advance.



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

Reply via email to