mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-19 18:40:17 +00:00
2ec9c8ccf0
This provides an example on how to use the CC13xx / CC26xx ADC
23 lines
490 B
Makefile
23 lines
490 B
Makefile
CFLAGS += -DBOARD_SMARTRF06EB=1
|
|
|
|
CONTIKI_TARGET_DIRS += srf06
|
|
|
|
BOARD_SOURCEFILES += leds-arch.c srf06-sensors.c button-sensor.c board.c
|
|
BOARD_SOURCEFILES += als-sensor.c
|
|
|
|
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
|