mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
25 lines
607 B
Makefile
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
|