1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
COMPONENT=end_deviceBasicAppC
PLATFORMS = telosb
ZIGBEE=$(TOSDIR)/lib/zigbee/clusterTree
# Shadows new version of files w.r.t. the official ones (if needed)
PFLAGS += -I$(ZIGBEE)/../shadow
PFLAGS += -I$(ZIGBEE)/includes \
-I$(ZIGBEE)/interfaces \
-I$(ZIGBEE)/nwk
PFLAGS += -DIM_END_DEVICE -DIEEE154_BEACON_TX_DISABLED
#PFLAGS += -DPRINTFUART_ENABLED
ifdef DEF_MAC_PANID
PFLAGS += -DDEF_MAC_PANID=$(DEF_MAC_PANID)
endif
ifdef DEF_CHANNEL
PFLAGS += -DDEF_CHANNEL=$(DEF_CHANNEL)
endif
ifdef BUILDDIR
PFLAGS += -DCBUILDDIR=$(BUILDDIR)
endif
ifdef DEF_DEVICE_DEPTH
PFLAGS += -DDEF_DEVICE_DEPTH=$(DEF_DEVICE_DEPTH)
endif
ifdef DEF_CHOSEN_PARENT
PFLAGS += -DDEF_CHOSEN_PARENT=$(DEF_CHOSEN_PARENT)
endif
ifdef DEF_MY_X
PFLAGS += -DDEF_MY_X=$(DEF_MY_X)
endif
ifdef DEF_MY_Y
PFLAGS += -DDEF_MY_Y=$(DEF_MY_Y)
endif
ifdef IEEE154_EXTENDED_ADDRESS
PFLAGS += -DIEEE154_EXTENDED_ADDRESS=$(IEEE154_EXTENDED_ADDRESS)
endif
ifdef TKN154_DEBUG
PFLAGS += -DTKN154_DEBUG
CFLAGS += -I$(TOSDIR)/lib/printf
PFLAGS += -DPRINTF_BUFFER_SIZE=1000
endif
# Try to optimize memory allocation by disabling some MAC services
#CFLAGS += -DIEEE154_RXENABLE_DISABLED -DIEEE154_DISASSOCIATION_DISABLED
#CFLAGS += -DIEEE154_RXENABLE_DISABLED -DIEEE154_DISASSOCIATION_DISABLED -DIEEE154_COORD_REALIGNMENT_DISABLED
#CFLAGS += -DIEEE154_RXENABLE_DISABLED
CFLAGS += -DTKN154_ACTIVE_MESSAGE_SUPPORT_DISABLED -DIEEE154_PROMISCUOUS_MODE_DISABLED -DIEEE154_GTS_DISABLED
# To use the TKN15.4 MAC instead of a platform's default MAC protocol first
# include the TinyOS "Makerules" file as usual ...
include $(MAKERULES)
# ... and then include the TKN15.4 "Makefile.include" file. That's all.
# Hint: type "make <platform> verbose" to see the aggregate include path.
include $(TOSDIR)/lib/mac/tkn154/Makefile.include
|