Example Makelocal

From Cyber-Physical Systems Laboratory
Jump to navigationJump to search

The Makelocal file contains TinyOS 1.x local settings like group ID, and radio frequency, and programming board settings. It is stored in $TOSROOT/tools/make/. Here is an example of what it may contain.

# Radio Frequencies: uncomment the line which has the frequency of your mote.
#Channel 0:
#PFLAGS += -DCC1K_DEF_FREQ=433002000
#Channel 2:
#PFLAGS += -DCC1K_DEF_FREQ=433616400
#Channel 4:
#PFLAGS += -DCC1K_DEF_FREQ=434107920
#Channel 6:
#PFLAGS += -DCC1K_DEF_FREQ=434845141

#PFLAGS += -DCC1K_DEF_PRESET=4

# Define the channel for the cc2420 chip.  The default is 11.
# The valid range is 11-26
#PFLAGS += -DCC2420_DEF_CHANNEL=20
PFLAGS += -DCC2420_DEF_CHANNEL=15


# Define for your local group in hex (otherwise it is 0x7d).
DEFAULT_LOCAL_GROUP=0x07

# Choose programmer and port. If nothing uncommented, then assumes MIB500.
#MIB510=/dev/ttyS0

# Uncomment out the following to enable Deluge
# TINYOS_NP = BNP