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
|
||||
* radio is off. You need to set this to 1 to use TSCH with its default 2.2ms
|
||||
* or larger guard time.
|
||||
* Set the inactivity timeout peroid for the RF driver. This determines how
|
||||
* long the RF driver will wait when inactive until turning off the RF Core.
|
||||
* Specified in microseconds.
|
||||
*/
|
||||
#ifndef RF_CONF_FAST_RADIO_STARTUP
|
||||
#define RF_FAST_RADIO_STARTUP (MAC_CONF_WITH_TSCH)
|
||||
#else
|
||||
#define RF_FAST_RADIO_STARTUP RF_CONF_FAST_RADIO_STARTUP
|
||||
#ifndef RF_CONF_INACTIVITY_TIMEOUT
|
||||
#define RF_CONF_INACTIVITY_TIMEOUT 2000 /**< 2 ms */
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
@ -369,7 +369,7 @@ init(void)
|
||||
/* Init RF params and specify non-default params */
|
||||
RF_Params 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);
|
||||
|
||||
|
@ -667,7 +667,7 @@ init(void)
|
||||
/* Init RF params and specify non-default params */
|
||||
RF_Params rf_params;
|
||||
RF_Params_init(&rf_params);
|
||||
rf_params.nInactivityTimeout = 2000; /* 2 ms */
|
||||
rf_params.nInactivityTimeout = RF_CONF_INACTIVITY_TIMEOUT;
|
||||
|
||||
/* Open RF Driver */
|
||||
prop_radio.rf_handle = netstack_open(&rf_params);
|
||||
|
Loading…
Reference in New Issue
Block a user