
The following instructions describe how to compile the source code. 

NOTE1: The implementation only works for the micaz platform.

NOTE2: We assume that "TOSDIR" is the environment variable that points to tinyOS
folder (eg: /opt/tinyos-1.x/). 

Step 1.
--------

Put folder 'hurray-pub' into $(TOSDIR)/contrib

Step 2.
--------

In order to have a better control of the radio configuration, some small 
modifications to CC2420Control were made. Because of this, our implementation
is not completely compatible with the current tinyOS tree.

In order to compile, goto folder $(TOSDIR)/tools/make and edit micaz.target.
Comment the following line (commenting is putting a '#' in the beginning):

CFLAGS += -I$(TOSDIR)/lib/CC2420Radio

Change to:

#CFLAGS += -I$(TOSDIR)/lib/CC2420Radio

In this way, the compiler will only use our CC2420 source files (from 
$(TOSDIR)/contrib folder).

Step 3.
--------

In folder  $(TOSDIR)/contrib/apps/WiDOMPrioColTest you can find a test 
application that sends messages aperiodically, using WiDOM.

IMPORTANT: Message priorities are assigned according to the node address. 
So node with address 1 sends messages with priority 1, node with address 2 
has messages with priority 2, and so on. (remember lower priority number, means 
higher priority)

Just compile and upload this into the motes:

make install,<address> micaz mib510 

Where the <address> is the node address. For example, node with address 1 
will be: 

make install,1 micaz mib510
