Thanks for your answer lads.
I've checked the whole system and there is no duplicate of the file EASAP.nc.
When I remove the definition in EASAP.nc interface, the compiler complains
(naturally):
interface has no command or event named `findNode'.
And there is no definition in EASAPImp interface. I've double checked.
I think, Michael, You have an idea that might be just the key to it. But how
can I trace this. The code is over 1000 lines. This is the complete error
message.
-------------------
EASAPM.nc: In function `EASAP.removeNode':
EASAPM.nc:651: warning: assignment from incompatible pointer type
EASAPM.nc: In function `EASAP.updateNodeInfo':
EASAPM.nc:691: warning: assignment from incompatible pointer type
EASAPM.nc: At top level:
EASAPM.nc:792: conflicting types for `EASAP.findNode'
EASAP.nc:81: previous declaration of `EASAP.findNode'
-------------------
At the top level of EASAPM.nc:
-------------------
includes EASAP;
module EASAPM
{
provides
{
interface StdControl;
interface EASAP; //For interfacing with the module
interface EASAPImp; //For internal implementation
}
}
implementation
{
//INF Structure
struct Node inf;
task void initINF();
task void updateFrame();
...
-------------------
And the interace in EASAP.nc:
--------------------
interface EASAP
{
command void slotZeroSig();
command bool getSlot(uint8_t* slotNr);
command bool addNode(uint8_t id, uint8_t* slots, uint8_t frameLength, bool
isNeighbour);
command void removeNode(uint8_t id);
command void updateNodeInfo(uint8_t id, uint8_t* slots, uint8_t frame);
command void removeInactiveNodes(uint16_t minInactive);
command struct Node* findNode(uint8_t id);
}
--------------------
Does that help?
Thanks again,
Inderjit
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help