Curiously enough in my TOS 1.1.7 version of mica2/HPLPotC.nc
all the offending TOSH* lines are commented out...and I can't
find any other uses of, e.g., "POT_SELECT".
But in any case, if those TOSH thingies _were_ defined they
would spring from something like
TOSH_ASSIGN_PIN( POT_SELECT, {port}, {pin#} );
probably hidden in a .h file that is not explicitly included
in any piece of source code you would think to explore. So
you need to grep through every conceivable source directory
to see if "POT_SELECT" is found. I loaded everything into
Eclipse so I can use their project file search feature
for this.
If you are not planning on using the 'POT' device, perhaps
just commenting out the bad stuff is the most expedient.
Hopefully someone who actually knows stuff can be more helpful.
MS
wangyd wrote:
> Hello!
> When I compile the program which using the PotM component,
> the error as follows:
> tos/platform/mica2/HPLPotC.nc:58:implicit delaration of function
> 'TOSH_SET_UD_PIN'
> tos/platform/mica2/HPLPotC.nc:58:implicit delaration of function
> 'TOSH_CLR_POT_SELECT_PIN'
> ......
>
> such TOSH_... function can't be found, and in HPLPotC.nc files says that have
> hpl.h file, but I can't find in the tinyos.
> HPLPotC is the implementation module of PotM,the code is:
>
> module HPLPotC {
> provides interface HPLPot as Pot;
> }
> implementation
> {
> command result_t Pot.decrease() {
> TOSH_SET_UD_PIN();
> TOSH_CLR_POT_SELECT_PIN();
> TOSH_SET_INC_PIN();
> TOSH_CLR_INC_PIN();
> TOSH_SET_POT_SELECT_PIN();
> return SUCCESS;
> }
>
> command result_t Pot.increase() {
> TOSH_CLR_UD_PIN();
> TOSH_CLR_POT_SELECT_PIN();
> TOSH_SET_INC_PIN();
> TOSH_CLR_INC_PIN();
> TOSH_SET_POT_SELECT_PIN();
> return SUCCESS;
> }
>
> command result_t Pot.finalise() {
> TOSH_SET_UD_PIN();
> TOSH_SET_INC_PIN();
> return SUCCESS;
> }
> }
>
> Where the TOSH_SET_UD_PIN and such function is implemented?
> How can I to implement the Pot's adjusting function in practice?
>
>
> wangyd
> [EMAIL PROTECTED]
> 2005-11-29
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help