[Tinyos-help] implicit declaration of function `TOSH_MAKE_BAT_MON_OUTPUT'

Michael Schippling schip at santafe.edu
Sun Nov 2 08:54:50 PST 2008


"make mica2" in the TestUart dir works fine for me
on what I believe to be a "normal" install of TOS 1.1.15
...
However I get a crash someplace along the way with "make pc".
So I don't know what to tell you.

At one time I was told that "tos/system/tos.h" is the only
header file that is magically included by the compile system.
It includes hardware.h. You may be able to see more detail
of what is compiled by adding a "-v" to the NESCC command
(put this in your makefile:  PFLAGS+=-v) or by looking
at the generated build/[platform]/app.c file.

MS

Wahid wrote:
> hi
> thanks for the reply, but the problem still persists when i 'make mica2' instead of 'make pc'. the declaration of functions like `TOSH_MAKE_BAT_MON_OUTPUT' is made through inclusion of the following files: 
> /opt/tinyos-1.x/tos/platform/avrmote/avrhardware.h 
> tos/platform/mica2/hardware.h
> which i don't have a clue HOW?!!
> 
> i'll highly appreciate if you kindly run the following command and give me the solution:
> root at wahid-desktop:/opt/tinyos-1.x/apps/TestUart$ make mica2
> 
> highly appreciate your help 
> wahid
> 
> Note: 
> 1-plz don't forget that in the Makefile i changed  COMPONENT=TestUartSimple to
>  COMPONENT=TestUartRadio
> 2-I'm Running a XubunTOS Virtual Machine Image in VMware
> 
> 
> --- On Wed, 10/15/08, Michael Schippling <schip at santafe.edu> wrote:
> 
>> From: Michael Schippling <schip at santafe.edu>
>> Subject: Re: [Tinyos-help] implicit declaration of function `TOSH_MAKE_BAT_MON_OUTPUT'
>> To: hamishagi at yahoo.com
>> Cc: tinyos-help at millennium.berkeley.edu, dgay42 at gmail.com
>> Date: Wednesday, October 15, 2008, 10:51 PM
>> In T1 those pin assignment macromacro-macros are usually in
>> the
>> hardware.h file. I found this:
>>  
>> tos/platform/mica2/hardware.h:121:TOSH_ASSIGN_PIN(BAT_MON,
>> A, 5);
>> but that file (and the other matches) is not included when
>> you make pc
>> so you'll probably have to kludge something. There may
>> not be a
>> simulation of the battery voltage that works so it could
>> turn into
>> a can'o'worms.
>>
>> MS
>>
>> Wahid wrote:
>>> Hi, I know that TOSH functions are generated through
>> macro mechanisms but i don't know how they are included.
>>> I'm trying to make /opt/tinyos-1.x/apps/TestUart
>> (in the Makefile i changed  COMPONENT=TestUartSimple to
>> COMPONENT=TestUartRadio)
>>> this is what i'm getting :
>>> wahid at wahid-desktop:/opt/tinyos-1.x/apps/TestUart$
>> make pc
>>> .
>>> .
>>> . In file included from TestUartRadio.nc:4:
>>> In component `TestUartRadioM':
>>> TestUartRadioM.nc: In function `StdControl.start':
>>> TestUartRadioM.nc:31: implicit declaration of function
>> `TOSH_MAKE_BAT_MON_OUTPUT'
>>> appreciate your kind help
>>>
>>>
>>>       _______________________________________________
>>> Tinyos-help mailing list
>>> Tinyos-help at millennium.berkeley.edu
>>>
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 
> 
>       

-- 
Platform: WinXP/Cygwin
TinyOS version: 1.x, Boomerang
Programmer: MIB510
Device(s): Mica2, MicaZ, Tmote
Sensor board: homebrew



More information about the Tinyos-help mailing list