Hi SHIVASANKAR,
Try defining prototypes of the function and define functions before
calling functions in your code.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
to
COMPONENT=TestUartRadio
2-I'm Running a XubunTOS Virtual Machine Image in VMware
--- On Wed, 10/15/08, Michael Schippling [EMAIL PROTECTED] wrote:
From: Michael Schippling [EMAIL PROTECTED]
Subject: Re: [Tinyos-help] implicit declaration of function
`TOSH_MAKE_BAT_MON_OUTPUT'
To: [EMAIL
=TestUartRadio
2-I'm Running a XubunTOS Virtual Machine Image in VMware
--- On Wed, 10/15/08, Michael Schippling [EMAIL PROTECTED] wrote:
From: Michael Schippling [EMAIL PROTECTED]
Subject: Re: [Tinyos-help] implicit declaration of function
`TOSH_MAKE_BAT_MON_OUTPUT'
To: [EMAIL PROTECTED]
Cc
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 :
[EMAIL
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
hello everybody,
in my program idefined my own function as TOS_MsgPtr packet(TOS_MsgPtr msg);
after receiving a complete data packet from the radio,i called for the above function as packet(data) (where data is the received TOS_MsgPtr),.when i tried to compile this file i am get error as
Or you can just declare it before you use it,
which is actually the usage shown in the question...
TOS_MsgPtr packet(TOS_MsgPtr msg);
func()
{
packet( msg );
}
TOS_MsgPtr packet(TOS_MsgPtr msg)
{
//stuff
return( msg );
}
Pablo Gil MontaƱo