diff --git a/sys/include/net/gnrc/gomach/gomach.h b/sys/include/net/gnrc/gomach/gomach.h index 60559a32b4..d676fda831 100644 --- a/sys/include/net/gnrc/gomach/gomach.h +++ b/sys/include/net/gnrc/gomach/gomach.h @@ -183,8 +183,8 @@ extern "C" { * hardware abnormal event. Upon this timeout expiration, GoMach will * accordingly take actions to maintain its state-machine. */ -#ifndef GNRC_GOMACH_NO_TX_ISR_US -#define GNRC_GOMACH_NO_TX_ISR_US (50U * US_PER_MS) +#ifndef CONFIG_GNRC_GOMACH_NO_TX_ISR_US +#define CONFIG_GNRC_GOMACH_NO_TX_ISR_US (50U * US_PER_MS) #endif /** diff --git a/sys/net/gnrc/link_layer/gomach/gomach.c b/sys/net/gnrc/link_layer/gomach/gomach.c index d29bf11bd7..a4dc44c7e3 100644 --- a/sys/net/gnrc/link_layer/gomach/gomach.c +++ b/sys/net/gnrc/link_layer/gomach/gomach.c @@ -557,7 +557,7 @@ static void gomach_t2k_trans_in_cp(gnrc_netif_t *netif) return; } - gnrc_gomach_set_timeout(netif, GNRC_GOMACH_TIMEOUT_NO_TX_ISR, GNRC_GOMACH_NO_TX_ISR_US); + gnrc_gomach_set_timeout(netif, GNRC_GOMACH_TIMEOUT_NO_TX_ISR, CONFIG_GNRC_GOMACH_NO_TX_ISR_US); netif->mac.tx.t2k_state = GNRC_GOMACH_T2K_WAIT_CPTX_FEEDBACK; gnrc_gomach_set_update(netif, false); @@ -815,7 +815,7 @@ static void gomach_t2k_trans_in_slots(gnrc_netif_t *netif) return; } - gnrc_gomach_set_timeout(netif, GNRC_GOMACH_TIMEOUT_NO_TX_ISR, GNRC_GOMACH_NO_TX_ISR_US); + gnrc_gomach_set_timeout(netif, GNRC_GOMACH_TIMEOUT_NO_TX_ISR, CONFIG_GNRC_GOMACH_NO_TX_ISR_US); netif->mac.tx.vtdma_para.slots_num--; netif->mac.tx.t2k_state = GNRC_GOMACH_T2K_WAIT_VTDMA_FEEDBACK; @@ -1268,7 +1268,7 @@ static void gomach_t2u_send_data(gnrc_netif_t *netif) return; } - gnrc_gomach_set_timeout(netif, GNRC_GOMACH_TIMEOUT_NO_TX_ISR, GNRC_GOMACH_NO_TX_ISR_US); + gnrc_gomach_set_timeout(netif, GNRC_GOMACH_TIMEOUT_NO_TX_ISR, CONFIG_GNRC_GOMACH_NO_TX_ISR_US); netif->mac.tx.t2u_state = GNRC_GOMACH_T2U_WAIT_DATA_TX; gnrc_gomach_set_update(netif, false); diff --git a/sys/net/gnrc/link_layer/gomach/gomach_internal.c b/sys/net/gnrc/link_layer/gomach/gomach_internal.c index 44985c8ece..fcd1de98c4 100644 --- a/sys/net/gnrc/link_layer/gomach/gomach_internal.c +++ b/sys/net/gnrc/link_layer/gomach/gomach_internal.c @@ -553,7 +553,7 @@ int gnrc_gomach_send_beacon(gnrc_netif_t *netif) } else { gnrc_gomach_set_timeout(netif, GNRC_GOMACH_TIMEOUT_NO_TX_ISR, - GNRC_GOMACH_NO_TX_ISR_US); + CONFIG_GNRC_GOMACH_NO_TX_ISR_US); } return res; }