Added RF inactivity timeout configuration
This commit is contained in:
parent
588c53b8a9
commit
e23aa04411
@ -91,14 +91,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If set, the systems keeps the HF crystal oscillator on even when the
|
* Set the inactivity timeout peroid for the RF driver. This determines how
|
||||||
* radio is off. You need to set this to 1 to use TSCH with its default 2.2ms
|
* long the RF driver will wait when inactive until turning off the RF Core.
|
||||||
* or larger guard time.
|
* Specified in microseconds.
|
||||||
*/
|
*/
|
||||||
#ifndef RF_CONF_FAST_RADIO_STARTUP
|
#ifndef RF_CONF_INACTIVITY_TIMEOUT
|
||||||
#define RF_FAST_RADIO_STARTUP (MAC_CONF_WITH_TSCH)
|
#define RF_CONF_INACTIVITY_TIMEOUT 2000 /**< 2 ms */
|
||||||
#else
|
|
||||||
#define RF_FAST_RADIO_STARTUP RF_CONF_FAST_RADIO_STARTUP
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -106,7 +104,7 @@
|
|||||||
* default PA.
|
* default PA.
|
||||||
*/
|
*/
|
||||||
#ifndef RF_CONF_TXPOWER_HIGH_PA
|
#ifndef RF_CONF_TXPOWER_HIGH_PA
|
||||||
#define RF_CONF_TXPOWER_HIGH_PA 0
|
#define RF_CONF_TXPOWER_HIGH_PA 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (RF_CONF_TXPOWER_HIGH_PA) && !(SUPPORTS_HIGH_PA)
|
#if (RF_CONF_TXPOWER_HIGH_PA) && !(SUPPORTS_HIGH_PA)
|
||||||
@ -119,7 +117,7 @@
|
|||||||
* consumption.
|
* consumption.
|
||||||
*/
|
*/
|
||||||
#ifndef RF_CONF_TXPOWER_BOOST_MODE
|
#ifndef RF_CONF_TXPOWER_BOOST_MODE
|
||||||
#define RF_CONF_TXPOWER_BOOST_MODE 0
|
#define RF_CONF_TXPOWER_BOOST_MODE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -369,7 +369,7 @@ init(void)
|
|||||||
/* Init RF params and specify non-default params */
|
/* Init RF params and specify non-default params */
|
||||||
RF_Params rf_params;
|
RF_Params rf_params;
|
||||||
RF_Params_init(&rf_params);
|
RF_Params_init(&rf_params);
|
||||||
rf_params.nInactivityTimeout = 2000; /* 2 ms */
|
rf_params.nInactivityTimeout = RF_CONF_INACTIVITY_TIMEOUT;
|
||||||
|
|
||||||
ieee_radio.rf_handle = netstack_open(&rf_params);
|
ieee_radio.rf_handle = netstack_open(&rf_params);
|
||||||
|
|
||||||
|
@ -667,7 +667,7 @@ init(void)
|
|||||||
/* Init RF params and specify non-default params */
|
/* Init RF params and specify non-default params */
|
||||||
RF_Params rf_params;
|
RF_Params rf_params;
|
||||||
RF_Params_init(&rf_params);
|
RF_Params_init(&rf_params);
|
||||||
rf_params.nInactivityTimeout = 2000; /* 2 ms */
|
rf_params.nInactivityTimeout = RF_CONF_INACTIVITY_TIMEOUT;
|
||||||
|
|
||||||
/* Open RF Driver */
|
/* Open RF Driver */
|
||||||
prop_radio.rf_handle = netstack_open(&rf_params);
|
prop_radio.rf_handle = netstack_open(&rf_params);
|
||||||
|
Loading…
Reference in New Issue
Block a user