1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

sys/net/cord : Move 'CONFIG_CORD_EP' to 'CONFIG_'

This commit is contained in:
Akshai M 2020-09-01 14:37:07 +05:30
parent e09063e7f1
commit 536a99022c
3 changed files with 8 additions and 8 deletions

View File

@ -13,13 +13,13 @@ RD, called `cord_ep`. Simply use that shell command without parameters for
more information on its usage. more information on its usage.
Some connection parameters are configured statically during compile time, 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 can change these values at compile time by overriding their defines using
command line arguments: 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: or by setting their values in the application's Makefile:
``` ```
CFLAGS += "-DCORD_EP=\"MyNewEpName\"" CFLAGS += "-DCONFIG_CORD_EP=\"MyNewEpName\""
``` ```

View File

@ -60,7 +60,7 @@ extern "C" {
* *
* @{ * @{
*/ */
#ifndef CORD_EP #ifndef CONFIG_CORD_EP
/** /**
* @brief Number of generated hexadecimal characters added to the ep * @brief Number of generated hexadecimal characters added to the ep
* *

View File

@ -28,8 +28,8 @@
#include "debug.h" #include "debug.h"
#ifdef CORD_EP #ifdef CONFIG_CORD_EP
#define BUFSIZE (sizeof(CORD_EP)) /* contains \0 termination char */ #define BUFSIZE (sizeof(CONFIG_CORD_EP)) /* contains \0 termination char */
#else #else
#define PREFIX_LEN (sizeof(CORD_EP_PREFIX)) /* contains \0 char */ #define PREFIX_LEN (sizeof(CORD_EP_PREFIX)) /* contains \0 char */
#define BUFSIZE (PREFIX_LEN + CORD_EP_SUFFIX_LEN) #define BUFSIZE (PREFIX_LEN + CORD_EP_SUFFIX_LEN)
@ -39,8 +39,8 @@ char cord_common_ep[BUFSIZE];
void cord_common_init(void) void cord_common_init(void)
{ {
#ifdef CORD_EP #ifdef CONFIG_CORD_EP
memcpy(cord_common_ep, CORD_EP, BUFSIZE); memcpy(cord_common_ep, CONFIG_CORD_EP, BUFSIZE);
#else #else
uint8_t luid[CORD_EP_SUFFIX_LEN / 2]; uint8_t luid[CORD_EP_SUFFIX_LEN / 2];