File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -257,8 +257,17 @@ CFLAGS += -Wno-cast-function-type
257257# Defined Symbol (MACROS)
258258CFLAGS += -D__HEAP_SIZE=0
259259CFLAGS += -DCONFIG_GPIO_AS_PINRESET
260- CFLAGS += -DCONFIG_NFCT_PINS_AS_GPIOS
261- CFLAGS += -DSOFTDEVICE_PRESENT
260+
261+ # Skip defining CONFIG_NFCT_PINS_AS_GPIOS if the device uses the NFCT.
262+ ifneq ($(USES_NFCT ) ,yes)
263+ CFLAGS += -DCONFIG_NFCT_PINS_AS_GPIOS
264+ endif
265+
266+ # Skip defining SOFTDEVICE_PRESENT if the device doesn't use a soft device.
267+ ifneq ($(NO_SOFT_DEVICE ) ,yes)
268+ CFLAGS += -DSOFTDEVICE_PRESENT
269+ endif
270+
262271CFLAGS += -DDFU_APP_DATA_RESERVED=7*4096
263272
264273CFLAGS += -DUF2_VERSION='"$(GIT_VERSION ) $(GIT_SUBMODULE_VERSIONS ) "'
Original file line number Diff line number Diff line change 11MCU_SUB_VARIANT = nrf52840
2- CFLAGS += -UCONFIG_NFCT_PINS_AS_GPIOS -USOFTDEVICE_PRESENT
2+ USES_NFCT = yes
3+ NO_SOFT_DEVICE = yes
You can’t perform that action at this time.
0 commit comments