2015-02-25 12:10:26 +00:00
|
|
|
CFLAGS += -DBOARD_SMARTRF06EB=1
|
|
|
|
|
2015-08-16 15:55:44 +00:00
|
|
|
CONTIKI_TARGET_DIRS += srf06
|
|
|
|
|
2015-02-25 12:10:26 +00:00
|
|
|
BOARD_SOURCEFILES += leds-arch.c srf06-sensors.c button-sensor.c board.c
|
2016-05-28 18:40:35 +00:00
|
|
|
BOARD_SOURCEFILES += als-sensor.c
|
2015-11-09 08:29:49 +00:00
|
|
|
|
|
|
|
PYTHON = python
|
|
|
|
BSL_FLAGS += -e -w -v
|
|
|
|
|
|
|
|
ifdef PORT
|
|
|
|
BSL_FLAGS += -p $(PORT)
|
|
|
|
endif
|
|
|
|
|
|
|
|
BSL = $(CONTIKI)/tools/cc2538-bsl/cc2538-bsl.py
|
|
|
|
|
|
|
|
%.upload: %.bin
|
|
|
|
ifeq ($(wildcard $(BSL)), )
|
|
|
|
@echo "ERROR: Could not find the cc2538-bsl script. Did you run 'git submodule update --init' ?"
|
|
|
|
else
|
|
|
|
$(PYTHON) $(BSL) $(BSL_FLAGS) $<
|
|
|
|
endif
|