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