fixed for phy-simulation mode

This commit is contained in:
Wang Tsu-Han
2018-09-13 15:02:15 +02:00
parent cf09d19879
commit 5b1260a759
9 changed files with 52 additions and 20 deletions
+17 -1
View File
@@ -82,7 +82,23 @@ double t_rx_min = 1000000000; /*!< \brief initial min process time for rx */
int n_tx_dropped = 0; /*!< \brief initial max process time for tx */
int n_rx_dropped = 0; /*!< \brief initial max process time for rx */
int codingw = 0;
static THREAD_STRUCT thread_struct;
void set_parallel_conf(int parallel_conf)
{
thread_struct.parallel_conf = (PARALLEL_CONF_t)parallel_conf;
}
void set_parallel_worker_conf(int worker_conf)
{
thread_struct.worker_conf = (WORKER_CONF_t)worker_conf;
}
PARALLEL_CONF_t get_thread_parallel_conf(void)
{
return thread_struct.parallel_conf;
}
WORKER_CONF_t get_thread_worker_conf(void)
{
return thread_struct.worker_conf;
}
int emulate_rf = 0;
+17 -1
View File
@@ -97,7 +97,23 @@ nfapi_tx_request_pdu_t tx_pdu_list[MAX_NUM_TX_REQUEST_PDU];
nfapi_tx_request_t TX_req;
Sched_Rsp_t sched_resp;
int codingw = 0;
static THREAD_STRUCT thread_struct;
void set_parallel_conf(int parallel_conf)
{
thread_struct.parallel_conf = (PARALLEL_CONF_t)parallel_conf;
}
void set_parallel_worker_conf(int worker_conf)
{
thread_struct.worker_conf = (WORKER_CONF_t)worker_conf;
}
PARALLEL_CONF_t get_thread_parallel_conf(void)
{
return thread_struct.parallel_conf;
}
WORKER_CONF_t get_thread_worker_conf(void)
{
return thread_struct.worker_conf;
}
void
fill_nfapi_ulsch_config_request(nfapi_ul_config_request_pdu_t *ul_config_pdu,