[Tinyos-help] Adc module compiler warnings

John Griessen john at ecosensory.com
Fri Aug 24 14:49:25 PDT 2007


I found a missing wiring to autoRVG module and got a compile
of my Adc mux sensorboard modules.

Are these compiler warnings needing investigation?


  make ecosens1
mkdir -p build/ecosens1
     compiling Testch12AdcC to a ecosens1 binary
ncc -o build/ecosens1/main.exe -Os -O -mdisable-hwmul -Wall -Wshadow 
-DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=ecosens1 
-fnesc-cfile=build/ecosens1/app.c -board=ch12Adc 
-DIDENT_PROGRAM_NAME=\"Testch12AdcC\" -DIDENT_USER_ID=\"john\" 
-DIDENT_HOSTNAME=\"ecolab\" -DIDENT_USER_HASH=0x41bf5233L 
-DIDENT_UNIX_TIME=0x46cf4c92L -DIDENT_UID_HASH=0x38406f0aL 
Testch12AdcC.nc -lm
/opt/tinyos-2.x/tos/sensorboards/ch12Adc/ch12AdcP.nc: In function 
`ch12AdcP$ch12Adc$getData':
/opt/tinyos-2.x/tos/sensorboards/ch12Adc/ch12AdcP.nc:46: warning: no 
return statement in function returning non-void
/opt/tinyos-2.x/tos/sensorboards/ch12Adc/ch12AdcP.nc: In function 
`ch12AdcP$ch12Adc$configure':
/opt/tinyos-2.x/tos/sensorboards/ch12Adc/ch12AdcP.nc:40: warning: no 
return statement in function returning non-void
     compiled Testch12AdcC to build/ecosens1/main.exe
             5558 bytes in ROM
              317 bytes in RAM

one function is
    call Resource.request();
(there is a   event void Resource.granted() to handle it)
other is
     call multichannel.configure(config, memctl, numMemctl, buffer, 
numSamples, jiffies);

If you have some minutes to look, the latest code files are here:


http://ecosensory.com/Testch12AdcC.nc
http://ecosensory.com/Testch12AdcP.nc
http://ecosensory.com/ch12AdcC.nc
http://ecosensory.com/ch12AdcP.nc

Thanks,

John Griessen
-- 
Ecosensory
tinyOS devel on:  ubuntu Linux;   tinyOS v2.0.2;   telosb ecosens1


More information about the Tinyos-help mailing list