diff --git a/examples/riot/coap_federated_lf/Makefile b/examples/riot/coap_federated_lf/Makefile index 59789c7c..f2c7ac5f 100755 --- a/examples/riot/coap_federated_lf/Makefile +++ b/examples/riot/coap_federated_lf/Makefile @@ -24,9 +24,6 @@ DEVELHELP ?= 1 # Change this to 0 show compiler invocation lines by default: QUIET ?= 1 -# Enable reactor-uc features -CFLAGS += -DNETWORK_CHANNEL_COAP_RIOT - # Configure CoAP retransmission timeout CFLAGS += -DCONFIG_GCOAP_NO_RETRANS_BACKOFF=1 CFLAGS += -DCONFIG_COAP_ACK_TIMEOUT_MS=400 diff --git a/make/riot/riot-lfc.mk b/make/riot/riot-lfc.mk index 70f7d2e2..8b5f64cf 100644 --- a/make/riot/riot-lfc.mk +++ b/make/riot/riot-lfc.mk @@ -44,6 +44,9 @@ else # Include generated h files CFLAGS += -I$(LF_SRC_GEN_PATH) + # Add compile definitions produced by the LF compiler + CFLAGS += $(patsubst %, -D%, $(LFC_GEN_COMPILE_DEFS)) + include $(RIOT_MK_DIR)/riot.mk endif