This project contains Application to test RF transceiver.
This application is related to Question 4 of HW1, which is about 
mote synchronization using radio.

Same application can be used to test both the  RF sender and RF receiver.
Both Transmitter and Receiver contain one periodic task.
The trasmitter task sends a packet in each cycle which contains a payload of
one byte. The payload contains 1 or 0 alternating in each periodic cycle.If 
sender is sending 1 it will set the RED led othwise it clears the RED led.

The reciever task in each cycle checks if a packet exists and if so receives
the packet. If packet is recieved with CRC check passed and
if the payload has 1 in it , it sets the  RED led otherwises clears the RED led.

Also UserButton functionilty is embedded into the application, so 
that when the UserButton is pressed, it stops the functionality of
transmitter and stops sending the packets to receiver. When the Userbutton is pressed again
the transmitter starts sending the packets again.

How to test
-----------

Transmitter Mote:

step 1: update makefile to contain NODE_ADDR =1

step 2: make clean; make program

Receiver Mote:

step 1: update makefile to contain NODE_ADDR =2

step 2: make clean; make program


Note: Makefile may need to be updated to change /devttyUSB0 or /dev/ttyUSB1
as needed to select the mote on which application needs to be loaded.


