Atmel AVR2070 Network Router User Manual


 
8
AVR2070
8240B-AVR-06/09
For command line operation using avr-gcc, options should be passed on the
command line as define (-D) options, such as:
avr-gcc -mmcu=atmega1281 -DF_CPU=8000000UL -DPLATFORM=RAVEN -o radio.o
radio.c (etc.)
Here is a list of available compile-time flags:
Table 3-1 Compile Time Flags
Option Name Possible values Meaning
PLATFORM RAVEN
RAVENUSB
ZIGBIT9
ZIGBIT24
Build RUM to work with the given platform.
This option can set other options, such as the
band the radio operates in (700/800/900MHz
or 2.4GHz).
Note: Not required for the ARM version of
RUM. Set PLATFORM to 0.
COORDNODE Undefined or 1 Set this variable to cause the node to be a
coordinator node.
Note: The ARM version of RUM assumes
only a coordinator node.
ROUTERNODE Undefined or 1 Set this variable to cause the node to be a
router node.
ENDNODE Undefined or 1 Set this variable to cause the node to be an
end node.
APP 0 (No application)
SENSOR
IPSO
Compiles in (or leaves out) the sensor
application. New applications can be added
to the list.
DEBUG 0
1
When DEBUG is set to 1, debugging
messages can be sent out the debug port.
Also, a simple terminal interface is available
in debugging mode (Not all platforms support
this with hardware).
Note: The definition of SERIAL or
OTA_DEBUG must be used in order to use
the DEBUG flag.
DEMO 0
1
In demo mode, a node joining the network
chooses to associate to the node with the
best signal (RSSI). This allows
demonstrating multi-hop functionality in a
small area. In non-demo mode, a new node
chooses its parent based on (in order):
1. Best LQI (Link Quality Indication)
2. Lowest number of hops to coordinator
3. Best RSSI.
RUMSLEEP 0
1
Sleep mode enables the ENDNODE to sleep.
If the sensor app (APP=SENSOR) is also
compiled in, then the node will sleep between
consecutive sensor readings.
Note: Coordinators and routers do not sleep,
but the RUMSLEEP flag includes code to
wake up end nodes and put them to sleep.
WDOG_SLEEP 0
1
Setups the Watchdog timer to act as the
timing source for the sleeping operation.
Note: If set to 0, sleeping relies on an
external 32.768KHz crystal.