Hello ,

Yes i found all that files that has defined macros. But why at the time of
compilation it shows that these macros are implicit definition.

How do i solve that so that it can fins these macros??

Is there any thing like setting path will solve the problem??

Thanks


On Fri, Mar 4, 2011 at 2:00 AM, Michael Schippling <[email protected]>wrote:

> For T1, things like sbi() are in the compiler includes,
> in my case:  /usr/local/avr/include/deprecated.h (!!?)
>
> The funications for setting pins, like:
>    TOSH_MAKE_TRIGGER_INPUT();
>    TOSH_SET_TRIGGER_PIN();
> are defined in source files spread far and wide,
> where you may find something like this:
>    TOSH_ASSIGN_PIN(TRIGGER, E, 7);     // port,pin E7
> that creates the association of name "TRIGGER" to port/pin.
>
> Unfortunately those defines are defined by a deeply nested
> set of macro defines, so just searching for the definition
> of "TOSH_SET_TRIGGER_PIN" will turn up exactly nada, as you
> have probably already discovered.
>
> MS
>
>
> Vishrut Shah wrote:
>
>> Hello ,
>>
>>           Did any one knows where are the hardware level functions defined
>> in tinyOS 1.x . And also what are the related TinyOS 2.x functions.
>>
>> Functions like : cbi(), sbi(), bit_is_set() and funcations for setting
>> PINs.
>>
>> Actually i am converting S-MAC protocol of TinyOS 1.x to TinyOS 2.x and
>> it's almost done. But it won't able to find some lower level function and
>> generating error as follows :
>>
>> ------------------------
>> In component `ClockSMACM':
>> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc: In
>> function `Clock.start':
>> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc:54:
>> implicit declaration of function `cbi'
>> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc:55:
>> implicit declaration of function `bit_is_set'
>> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc:64:
>> implicit declaration of function `sbi'
>> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc: At top
>> level:
>> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc:75:
>> old-style parameter lists not supported
>> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc:75:
>> warning: return-type defaults to `int'
>> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc: In
>> function `TimeStamp.getTime32':
>> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc:82:
>> implicit declaration of function `bit_is_set'
>> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc:84:
>> implicit declaration of function `__inw'
>>
>> -----------------------
>>
>> So if anyone knows in which file or directory it is defined then please
>> reply soon.
>>
>> Thanks in advance
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> 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