1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/dist/tools/nrf52_resetpin_cfg/Makefile
Gregory Holder 4a3240b524 dist/tools: add "RESET_PIN" value for the dwm1001
Set "RESET_PIN" to 21 if the selected board is "dwm1001".
2022-10-28 13:47:44 +02:00

31 lines
741 B
Makefile

# name of your application
APPLICATION = nrf52_resetpin_cfg
# configure RIOT basics
BOARD ?= nrf52dk
RIOTBASE ?= $(CURDIR)/../../..
# This application uses getchar and thus expects input from stdio
USEMODULE += stdin
# 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 (dwm1001,$(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