From fb71ccc09837c0fc0968286ff183945fd4ce5610 Mon Sep 17 00:00:00 2001 From: PeterKietzmann Date: Thu, 9 Jan 2020 17:34:07 +0100 Subject: [PATCH] net/gnrc/netif:GNRC_NETIF_MIN_WAIT_AFTER_SEND_US to 'CONFIG_' namespace --- sys/include/net/gnrc/netif/conf.h | 4 ++-- sys/net/gnrc/netif/gnrc_netif.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/include/net/gnrc/netif/conf.h b/sys/include/net/gnrc/netif/conf.h index 56091bcb3c2d..c891ff0014ec 100644 --- a/sys/include/net/gnrc/netif/conf.h +++ b/sys/include/net/gnrc/netif/conf.h @@ -144,8 +144,8 @@ extern "C" { * * This is purely meant as a debugging feature to slow down a radios sending. */ -#ifndef GNRC_NETIF_MIN_WAIT_AFTER_SEND_US -#define GNRC_NETIF_MIN_WAIT_AFTER_SEND_US (0U) +#ifndef CONFIG_GNRC_NETIF_MIN_WAIT_AFTER_SEND_US +#define CONFIG_GNRC_NETIF_MIN_WAIT_AFTER_SEND_US (0U) #endif #ifdef __cplusplus diff --git a/sys/net/gnrc/netif/gnrc_netif.c b/sys/net/gnrc/netif/gnrc_netif.c index 2a4b7753df2e..17bf83982d00 100644 --- a/sys/net/gnrc/netif/gnrc_netif.c +++ b/sys/net/gnrc/netif/gnrc_netif.c @@ -1376,7 +1376,7 @@ static void *_gnrc_netif_thread(void *args) #endif /* now let rest of GNRC use the interface */ gnrc_netif_release(netif); -#if (GNRC_NETIF_MIN_WAIT_AFTER_SEND_US > 0U) +#if (CONFIG_GNRC_NETIF_MIN_WAIT_AFTER_SEND_US > 0U) xtimer_ticks32_t last_wakeup = xtimer_now(); #endif @@ -1401,11 +1401,11 @@ static void *_gnrc_netif_thread(void *args) netif->stats.tx_bytes += res; } #endif -#if (GNRC_NETIF_MIN_WAIT_AFTER_SEND_US > 0U) +#if (CONFIG_GNRC_NETIF_MIN_WAIT_AFTER_SEND_US > 0U) xtimer_periodic_wakeup(&last_wakeup, - GNRC_NETIF_MIN_WAIT_AFTER_SEND_US); + CONFIG_GNRC_NETIF_MIN_WAIT_AFTER_SEND_US); /* override last_wakeup in case last_wakeup + - * GNRC_NETIF_MIN_WAIT_AFTER_SEND_US was in the past */ + * CONFIG_GNRC_NETIF_MIN_WAIT_AFTER_SEND_US was in the past */ last_wakeup = xtimer_now(); #endif break;