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 :
> [EMAIL PROTECTED]:/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
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to