mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
gnrc/gomach : Move GNRC_GOMACH_WAIT_RX_END_US to 'CONFIG_'
This commit is contained in:
parent
588200f515
commit
ae175987d5
@ -168,11 +168,11 @@ extern "C" {
|
||||
*
|
||||
* Sometimes in GoMacH, if a node finds RX ongoing when it is just about to
|
||||
* enter the next MAC state, it will set up a timeout for waiting this packet
|
||||
* reception complete with a timeout of this @ref GNRC_GOMACH_WAIT_RX_END_US
|
||||
* duration.
|
||||
* reception complete with a timeout of this
|
||||
* @ref CONFIG_GNRC_GOMACH_WAIT_RX_END_US duration.
|
||||
*/
|
||||
#ifndef GNRC_GOMACH_WAIT_RX_END_US
|
||||
#define GNRC_GOMACH_WAIT_RX_END_US (6U * US_PER_MS)
|
||||
#ifndef CONFIG_GNRC_GOMACH_WAIT_RX_END_US
|
||||
#define CONFIG_GNRC_GOMACH_WAIT_RX_END_US (6U * US_PER_MS)
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -1159,7 +1159,7 @@ static bool _handle_in_t2u_send_preamble(gnrc_netif_t *netif)
|
||||
gnrc_gomach_clear_timeout(netif, GNRC_GOMACH_TIMEOUT_WAIT_RX_END);
|
||||
|
||||
gnrc_gomach_set_timeout(netif, GNRC_GOMACH_TIMEOUT_WAIT_RX_END,
|
||||
GNRC_GOMACH_WAIT_RX_END_US);
|
||||
CONFIG_GNRC_GOMACH_WAIT_RX_END_US);
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -1540,7 +1540,7 @@ static void _cp_listen_end(gnrc_netif_t *netif)
|
||||
netif->mac.prot.gomach.cp_extend_count++;
|
||||
gnrc_gomach_clear_timeout(netif, GNRC_GOMACH_TIMEOUT_WAIT_RX_END);
|
||||
gnrc_gomach_set_timeout(netif, GNRC_GOMACH_TIMEOUT_WAIT_RX_END,
|
||||
GNRC_GOMACH_WAIT_RX_END_US);
|
||||
CONFIG_GNRC_GOMACH_WAIT_RX_END_US);
|
||||
}
|
||||
else {
|
||||
gnrc_gomach_clear_timeout(netif, GNRC_GOMACH_TIMEOUT_WAIT_RX_END);
|
||||
@ -1757,7 +1757,7 @@ static void gomach_vtdma(gnrc_netif_t *netif)
|
||||
if (gnrc_gomach_get_netdev_state(netif) == NETOPT_STATE_RX) {
|
||||
gnrc_gomach_clear_timeout(netif, GNRC_GOMACH_TIMEOUT_WAIT_RX_END);
|
||||
gnrc_gomach_set_timeout(netif, GNRC_GOMACH_TIMEOUT_WAIT_RX_END,
|
||||
GNRC_GOMACH_WAIT_RX_END_US);
|
||||
CONFIG_GNRC_GOMACH_WAIT_RX_END_US);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user