2010-12-15 11:18:09 +00:00
|
|
|
# $Id: Makefile.mb851,v 1.2 2010/12/15 11:18:09 salvopitru Exp $
|
2010-10-25 09:03:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
ARCH= irq.c sensors.c acc-sensor.c button-sensor.c temperature-sensor.c mems.c
|
|
|
|
|
|
|
|
CONTIKI_TARGET_DIRS = . dev
|
|
|
|
ifndef CONTIKI_TARGET_MAIN
|
2011-03-21 12:11:52 +00:00
|
|
|
CONTIKI_TARGET_MAIN = contiki-main.c board-mb851.c
|
2010-10-25 09:03:38 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef UIP_CONF_IPV6
|
|
|
|
CFLAGS += -DWITH_UIP6=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += $(ARCH) $(CONTIKI_TARGET_MAIN)
|
|
|
|
|
|
|
|
MCU=STM32W108
|
|
|
|
include $(CONTIKI)/cpu/stm32w108/Makefile.stm32w108
|
2010-12-15 11:18:09 +00:00
|
|
|
|
|
|
|
SERIALDUMP = $(CONTIKI)/tools/stm32w/serialdump-linux
|
|
|
|
|
|
|
|
ifdef OS
|
|
|
|
ifneq (,$(findstring Windows,$(OS)))
|
|
|
|
SERIALDUMP = $(CONTIKI)/tools/stm32w/serialdump-windows
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
login:
|
2011-03-25 08:20:12 +00:00
|
|
|
$(SERIALDUMP) -b115200 -d10000 $(PORT)
|