1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

gnrc/gomach : Move GNRC_GOMACH_NO_TX_ISR_US to 'CONFIG_'

This commit is contained in:
Akshai M 2020-05-19 17:53:31 +05:30
parent ae175987d5
commit a0a6dc0e4e
3 changed files with 6 additions and 6 deletions

View File

@ -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
/**

View File

@ -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);

View File

@ -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;
}