Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
canghaiwuhen
OpenXG-RAN
Commits
5575fed2
Commit
5575fed2
authored
Jan 07, 2017
by
Raymond.Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some warning removal.
parent
14d28e2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
targets/RT/USER/lte-enb.c
targets/RT/USER/lte-enb.c
+16
-5
No files found.
targets/RT/USER/lte-enb.c
View file @
5575fed2
...
...
@@ -128,7 +128,7 @@ extern pthread_cond_t sync_cond;
extern
pthread_mutex_t
sync_mutex
;
extern
int
sync_var
;
extern
transmission_mode
;
extern
int
transmission_mode
;
//pthread_t main_eNB_thread;
...
...
@@ -1010,7 +1010,7 @@ void rx_fh_if4p5(PHY_VARS_eNB *eNB,int *frame,int *subframe) {
uint16_t
packet_type
;
uint32_t
symbol_number
=
0
;
uint32_t
symbol_mask
,
symbol_mask
_full
;
uint32_t
symbol_mask_full
;
symbol_mask_full
=
(
1
<<
fp
->
symbols_per_tti
)
-
1
;
...
...
@@ -1258,6 +1258,7 @@ void *eNB_thread_synch(void *arg) {
lte_sync_time_free
();
return
NULL
;
}
int
wakeup_synch
(
PHY_VARS_eNB
*
eNB
){
...
...
@@ -1486,6 +1487,10 @@ static void* eNB_thread_single( void* param ) {
rxp
,
fp
->
samples_per_tti
*
10
,
fp
->
nb_antennas_rx
);
if
(
rxs
!=
(
fp
->
samples_per_tti
*
10
))
exit_fun
(
"Problem receiving samples
\n
"
);
// wakeup synchronization processing thread
wakeup_synch
(
eNB
);
ic
=
0
;
...
...
@@ -1502,6 +1507,9 @@ static void* eNB_thread_single( void* param ) {
rxp2
,
fp
->
samples_per_tti
,
fp
->
nb_antennas_rx
);
if
(
rxs
!=
fp
->
samples_per_tti
)
exit_fun
(
"problem receiving samples"
);
pthread_mutex_lock
(
&
eNB
->
proc
.
mutex_synch
);
ic
=
eNB
->
proc
.
instance_cnt_synch
;
pthread_mutex_unlock
(
&
eNB
->
proc
.
mutex_synch
);
...
...
@@ -1514,6 +1522,9 @@ static void* eNB_thread_single( void* param ) {
rxp
,
eNB
->
rx_offset
,
fp
->
nb_antennas_rx
);
if
(
rxs
!=
eNB
->
rx_offset
)
exit_fun
(
"problem receiving samples"
);
for
(
i
=
0
;
i
<
4
;
i
++
)
{
eNB
->
rfdevice
.
openair0_cfg
->
rx_freq
[
i
]
=
temp_freq1
;
eNB
->
rfdevice
.
openair0_cfg
->
tx_freq
[
i
]
=
temp_freq2
;
...
...
@@ -1876,7 +1887,7 @@ int start_rf(PHY_VARS_eNB *eNB) {
return
(
eNB
->
rfdevice
.
trx_start_func
(
&
eNB
->
rfdevice
));
}
extern
void
eNB_fep_rru_if5
(
PHY_VARS_eNB
*
eNB
);
extern
void
eNB_fep_rru_if5
(
PHY_VARS_eNB
*
eNB
,
eNB_rxtx_proc_t
*
proc
);
extern
void
eNB_fep_full
(
PHY_VARS_eNB
*
eNB
,
eNB_rxtx_proc_t
*
proc
);
extern
void
eNB_fep_full_2thread
(
PHY_VARS_eNB
*
eNB
,
eNB_rxtx_proc_t
*
proc
);
extern
void
do_prach
(
PHY_VARS_eNB
*
eNB
,
int
frame
,
int
subframe
);
...
...
@@ -1964,7 +1975,7 @@ void init_eNB(eNB_func_t node_function[], eNB_timing_t node_timing[],int nb_inst
break
;
case
eNodeB_3GPP
:
eNB
->
do_precoding
=
(
eNB
->
frame_parms
.
nb_antenna
_ports_eNB
==
1
)
?
0
:
1
;
eNB
->
do_precoding
=
(
eNB
->
frame_parms
.
nb_antenna
s_tx
==
1
)
?
0
:
1
;
eNB
->
do_prach
=
do_prach
;
eNB
->
fep
=
eNB_fep_full
;
//(single_thread_flag==1) ? eNB_fep_full_2thread : eNB_fep_full;
eNB
->
td
=
ulsch_decoding_data
;
//(single_thread_flag==1) ? ulsch_decoding_data_2thread : ulsch_decoding_data;
...
...
@@ -1985,7 +1996,7 @@ void init_eNB(eNB_func_t node_function[], eNB_timing_t node_timing[],int nb_inst
eNB
->
ifdevice
.
host_type
=
BBU_HOST
;
break
;
case
eNodeB_3GPP_BBU
:
eNB
->
do_precoding
=
(
eNB
->
frame_parms
.
nb_antenna
_ports_eNB
==
1
)
?
0
:
1
;
eNB
->
do_precoding
=
(
eNB
->
frame_parms
.
nb_antenna
s_tx
==
1
)
?
0
:
1
;
eNB
->
do_prach
=
do_prach
;
eNB
->
fep
=
eNB_fep_full
;
//(single_thread_flag==1) ? eNB_fep_full_2thread : eNB_fep_full;
eNB
->
td
=
ulsch_decoding_data
;
//(single_thread_flag==1) ? ulsch_decoding_data_2thread : ulsch_decoding_data;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment