1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/dist/tools/nrf52_resetpin_cfg/Makefile
Hauke Petersen 0ca02de0a2 tools: add nrf52_resetpin_cfg tool
This new tool allows configuring the reset pin for nRF52-based
boards. As the reset pin configuration is persistent, it does not
make sense to include it into the board code...
2018-09-28 16:50:58 +02:00

25 lines
607 B
Makefile

# name of your application
APPLICATION = nrf52_resetpin_cfg
# configure RIOT basics
BOARD ?= nrf52dk
RIOTBASE ?= $(CURDIR)/../../..
# 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