2016-01-09 13:44:39 +00:00
|
|
|
ifndef CONTIKI
|
|
|
|
$(error CONTIKI not defined! You must specify where CONTIKI resides!)
|
|
|
|
endif
|
|
|
|
|
|
|
|
### Include the board-specific makefile
|
2018-11-23 09:35:41 +00:00
|
|
|
PLATFORM_ROOT_DIR = $(ARCH_PATH)/platform/$(TARGET)
|
2016-01-09 13:44:39 +00:00
|
|
|
|
|
|
|
CONTIKI_TARGET_DIRS += . dev config
|
2017-10-15 14:58:58 +00:00
|
|
|
CONTIKI_SOURCEFILES += platform.c leds-arch.c nrf52dk-sensors.c button-sensor.c temperature-sensor.c
|
2016-01-09 13:44:39 +00:00
|
|
|
|
|
|
|
ifeq ($(NRF52_USE_RTT),1)
|
2018-10-04 14:39:00 +00:00
|
|
|
### Suppress the existing debug I/O in os/lib
|
2018-10-05 10:13:44 +00:00
|
|
|
MAKE_WITH_LIB_DBG_IO = 0
|
2016-01-09 13:44:39 +00:00
|
|
|
CONTIKI_TARGET_DIRS += rtt
|
|
|
|
CONTIKI_SOURCEFILES += rtt-printf.c segger-rtt.c segger-rtt-printf.c
|
|
|
|
else
|
|
|
|
CONTIKI_SOURCEFILES += dbg.c
|
|
|
|
endif
|
|
|
|
|
2017-05-16 15:09:58 +00:00
|
|
|
### Unless the example dictates otherwise, build with code size optimisations switched off
|
|
|
|
SMALL ?= 0
|
2016-01-09 13:44:39 +00:00
|
|
|
|
|
|
|
### Define the CPU directory and pull in the correct CPU makefile.
|
2018-11-23 09:35:41 +00:00
|
|
|
CONTIKI_CPU=$(ARCH_PATH)/cpu/nrf52832
|
2016-01-09 13:44:39 +00:00
|
|
|
include $(CONTIKI_CPU)/Makefile.nrf52832
|