diff --git a/examples/cord_ep/README.md b/examples/cord_ep/README.md index 2a23d14d04..dc09781cc7 100644 --- a/examples/cord_ep/README.md +++ b/examples/cord_ep/README.md @@ -13,13 +13,13 @@ RD, called `cord_ep`. Simply use that shell command without parameters for more information on its usage. Some connection parameters are configured statically during compile time, -namely the lifetime (`CONFIG_CORD_LT`) and the node's endpoint name (`CORD_EP`). You +namely the lifetime (`CONFIG_CORD_LT`) and the node's endpoint name (`CONFIG_CORD_EP`). You can change these values at compile time by overriding their defines using command line arguments: ``` -CFLAGS="-DCORD_EP=\\\"your_ep_name_here\\\"" make all +CFLAGS="-DCONFIG_CORD_EP=\\\"your_ep_name_here\\\"" make all ``` or by setting their values in the application's Makefile: ``` -CFLAGS += "-DCORD_EP=\"MyNewEpName\"" +CFLAGS += "-DCONFIG_CORD_EP=\"MyNewEpName\"" ``` diff --git a/sys/include/net/cord/config.h b/sys/include/net/cord/config.h index dd855f9a22..ef10d89398 100644 --- a/sys/include/net/cord/config.h +++ b/sys/include/net/cord/config.h @@ -60,7 +60,7 @@ extern "C" { * * @{ */ -#ifndef CORD_EP +#ifndef CONFIG_CORD_EP /** * @brief Number of generated hexadecimal characters added to the ep * diff --git a/sys/net/application_layer/cord/common/cord_common.c b/sys/net/application_layer/cord/common/cord_common.c index 86d603cc33..347d44bfea 100644 --- a/sys/net/application_layer/cord/common/cord_common.c +++ b/sys/net/application_layer/cord/common/cord_common.c @@ -28,8 +28,8 @@ #include "debug.h" -#ifdef CORD_EP -#define BUFSIZE (sizeof(CORD_EP)) /* contains \0 termination char */ +#ifdef CONFIG_CORD_EP +#define BUFSIZE (sizeof(CONFIG_CORD_EP)) /* contains \0 termination char */ #else #define PREFIX_LEN (sizeof(CORD_EP_PREFIX)) /* contains \0 char */ #define BUFSIZE (PREFIX_LEN + CORD_EP_SUFFIX_LEN) @@ -39,8 +39,8 @@ char cord_common_ep[BUFSIZE]; void cord_common_init(void) { -#ifdef CORD_EP - memcpy(cord_common_ep, CORD_EP, BUFSIZE); +#ifdef CONFIG_CORD_EP + memcpy(cord_common_ep, CONFIG_CORD_EP, BUFSIZE); #else uint8_t luid[CORD_EP_SUFFIX_LEN / 2];