[Tinyos-devel] ZigBee implementation patch for MicaZ
Stefano "Kismet" Lenzi
kismet.sl at gmail.com
Thu Jul 10 02:27:29 PDT 2008
Hi All,
After following the thread "Two zigbee implementation" I have looked
again to the /tos/lib/net/zigbee folder. I tried to compile the test
application in the /tos/lib/net/zigbee/apps folder, but to have them
compile I had to add/modify the following lines to files:
/tos/lib/net/zigbee/cc2420/CC2420ControlP.nc
/**
* @param on TRUE to turn address recognition on, FALSE to turn it off
* @param useHw TRUE to turn hardware address recognition, FALSE to
* perform address recognition in software
*/
command void CC2420Config.setAddressRecognition(bool on, bool useHw) {
atomic addressRecognition = on;
//NOTE: As far as I understood the address recognition is
performed only in hardware
}
/**
* @return TRUE if address recognition is performed first in hardware.
*/
async command bool CC2420Config.isHwAddressRecognitionDefault() {
return TRUE;
//NOTE: As far as I understood the address recognition is
performed only in hardware if enable
}
If you think that the patch is correct feel free to add it to the CVS.
Ciao,
Stefano "Kismet" Lenzi
More information about the Tinyos-devel
mailing list