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

net/lorawan : Move 'LORAMAC_DEFAULT_ADR' to 'CONFIG_'

Move 'LORAMAC_DEFAULT_ADR' to 'CONFIG_' namespace and model
'CONFIG_LORAMAC_DEFAULT_ADR' as BOOL for Kconfig
This commit is contained in:
Akshai M 2020-11-23 15:58:36 +01:00
parent d2d90fbce5
commit 97d873a5bd
3 changed files with 4 additions and 4 deletions

View File

@ -253,7 +253,7 @@ int rn2xx3_mac_init(rn2xx3_t *dev)
rn2xx3_mac_set_tx_power(dev, CONFIG_LORAMAC_DEFAULT_TX_POWER);
rn2xx3_mac_set_tx_port(dev, CONFIG_LORAMAC_DEFAULT_TX_PORT);
rn2xx3_mac_set_tx_mode(dev, CONFIG_LORAMAC_DEFAULT_TX_MODE);
rn2xx3_mac_set_adr(dev, LORAMAC_DEFAULT_ADR);
rn2xx3_mac_set_adr(dev, IS_ACTIVE(CONFIG_LORAMAC_DEFAULT_ADR));
rn2xx3_mac_set_retx(dev, LORAMAC_DEFAULT_RETX);
rn2xx3_mac_set_linkchk_interval(dev, LORAMAC_DEFAULT_LINKCHK);
rn2xx3_mac_set_rx1_delay(dev, LORAMAC_DEFAULT_RX1_DELAY);

View File

@ -377,7 +377,7 @@ void _init_loramac(semtech_loramac_t *mac,
mutex_unlock(&mac->lock);
semtech_loramac_set_dr(mac, CONFIG_LORAMAC_DEFAULT_DR);
semtech_loramac_set_adr(mac, LORAMAC_DEFAULT_ADR);
semtech_loramac_set_adr(mac, IS_ACTIVE(CONFIG_LORAMAC_DEFAULT_ADR));
semtech_loramac_set_public_network(mac, LORAMAC_DEFAULT_PUBLIC_NETWORK);
semtech_loramac_set_class(mac, CONFIG_LORAMAC_DEFAULT_DEVICE_CLASS);
semtech_loramac_set_tx_port(mac, CONFIG_LORAMAC_DEFAULT_TX_PORT);

View File

@ -259,8 +259,8 @@ extern "C" {
/**
* @brief Default adaptive datarate state
*/
#ifndef LORAMAC_DEFAULT_ADR
#define LORAMAC_DEFAULT_ADR (false)
#ifdef DOXYGEN
#define CONFIG_LORAMAC_DEFAULT_ADR
#endif
/**