738c5dcd4b
MBXXX is a fake platform that actually include all the platforms based on STM32W108 microcontroller. Detection of the board is made at runtime, at the expense of code size.
31 lines
611 B
Makefile
31 lines
611 B
Makefile
|
|
|
|
ARCH= irq.c sensors.c acc-sensor.c button-sensor.c temperature-sensor.c mems.c
|
|
|
|
CONTIKI_TARGET_DIRS = . dev
|
|
ifndef CONTIKI_TARGET_MAIN
|
|
CONTIKI_TARGET_MAIN = contiki-main.c led.c button.c board.c
|
|
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
|
|
|
|
SERIALDUMP = $(CONTIKI)/tools/stm32w/serialdump-linux
|
|
|
|
ifdef OS
|
|
ifneq (,$(findstring Windows,$(OS)))
|
|
SERIALDUMP = $(CONTIKI)/tools/stm32w/serialdump-windows
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
login:
|
|
$(SERIALDUMP) -b115200 -d10000 $(PORT)
|