2018-09-28 16:49:35 +02:00
|
|
|
# name of your application
|
|
|
|
APPLICATION = nrf52_resetpin_cfg
|
|
|
|
|
|
|
|
# configure RIOT basics
|
|
|
|
BOARD ?= nrf52dk
|
|
|
|
RIOTBASE ?= $(CURDIR)/../../..
|
|
|
|
|
2019-05-28 18:31:11 +02:00
|
|
|
# This application uses getchar and thus expects input from stdio
|
|
|
|
USEMODULE += stdin
|
|
|
|
|
2018-09-28 16:49:35 +02:00
|
|
|
# the RESET_PIN environment variable allows for manually specifying the reset
|
|
|
|
# pin that is programmed. Below this Makefile already contains the specific pins
|
|
|
|
# for some known platforms
|
|
|
|
ifeq (nrf52dk,$(BOARD))
|
|
|
|
RESET_PIN ?= 21
|
|
|
|
endif
|
|
|
|
ifeq (nrf52840dk,$(BOARD))
|
|
|
|
RESET_PIN ?= 18
|
|
|
|
endif
|
|
|
|
ifeq (,$(RESET_PIN))
|
|
|
|
$(error Please specify the target reset pin using the RESET_PIN env variable)
|
|
|
|
else
|
|
|
|
CFLAGS += -DRESET_PIN=$(RESET_PIN)
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
include $(RIOTBASE)/Makefile.include
|