From: sallai Date: Wed, 9 Jul 2008 15:36:50 +0000 (+0000) Subject: added channel selection support to makefiles for micaz and iris X-Git-Tag: release_tinyos_2_1_0_0~97 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=295e80833dc27a6ecf52635e572a8f2a2cdcf6f2 added channel selection support to makefiles for micaz and iris --- diff --git a/support/make/iris.target b/support/make/iris.target index 7ce8a075..c0149bcd 100644 --- a/support/make/iris.target +++ b/support/make/iris.target @@ -20,6 +20,11 @@ endif AVR_FUSE_H ?= 0xd9 AVR_FUSE_L ?= 0xff + +ifdef RF230_CHANNEL +PFLAGS += -DRF230_DEF_CHANNEL=$(RF230_CHANNEL) +endif + $(call TOSMake_include_platform,avr) iris: $(BUILD_DEPS) diff --git a/support/make/micaz.target b/support/make/micaz.target index 9f3a1f50..49a30878 100644 --- a/support/make/micaz.target +++ b/support/make/micaz.target @@ -11,9 +11,13 @@ endif ifeq ($(PROGRAMMER),uisp) PROGRAMMER_PART ?= -dpart=ATmega128 --wr_fuse_e=ff endif - + AVR_FUSE_H ?= 0xd9 +ifdef CC2420_CHANNEL +PFLAGS += -DCC2420_DEF_CHANNEL=$(CC2420_CHANNEL) +endif + $(call TOSMake_include_platform,avr) micaz: $(BUILD_DEPS)