From 295e80833dc27a6ecf52635e572a8f2a2cdcf6f2 Mon Sep 17 00:00:00 2001 From: sallai Date: Wed, 9 Jul 2008 15:36:50 +0000 Subject: [PATCH] added channel selection support to makefiles for micaz and iris --- support/make/iris.target | 5 +++++ support/make/micaz.target | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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) -- 2.39.2