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
wangjie
OpenXG-RAN
Commits
1a044242
Commit
1a044242
authored
Jul 15, 2014
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5503
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
2b352d6f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
5 deletions
+34
-5
targets/RT/USER/lte-softmodem.c
targets/RT/USER/lte-softmodem.c
+34
-5
No files found.
targets/RT/USER/lte-softmodem.c
View file @
1a044242
...
...
@@ -1040,8 +1040,9 @@ static void *eNB_thread(void *arg)
int
ret
;
// int tx_offset;
int
sf
;
#ifndef USRP
volatile
unsigned
int
*
DAQ_MBOX
=
openair0_daq_cnt
();
#endif
#if defined(ENABLE_ITTI)
/* Wait for eNB application initialization to be complete (eNB registration to MME) */
wait_system_ready
(
"Waiting for eNB application to be ready %s
\r
"
,
&
start_eNB
);
...
...
@@ -1071,6 +1072,8 @@ static void *eNB_thread(void *arg)
timing_info
.
n_samples
=
0
;
while
(
!
oai_exit
)
{
#ifndef USRP
hw_slot
=
(((((
volatile
unsigned
int
*
)
DAQ_MBOX
)[
0
]
+
1
)
%
150
)
<<
1
)
/
15
;
// LOG_D(HW,"eNB frame %d, time %llu: slot %d, hw_slot %d (mbox %d)\n",frame,rt_get_time_ns(),slot,hw_slot,((unsigned int *)DAQ_MBOX)[0]);
//this is the mbox counter where we should be
...
...
@@ -1132,6 +1135,26 @@ static void *eNB_thread(void *arg)
diff
=
mbox_target
-
mbox_current
;
}
#else // USRP
while
(
rx_cnt
<
sf_bounds
[
hw_subframe
])
{
openair0
.
trx_read_func
(
&
openair0
,
&
timestamp
,
&
rxdata
[
rx_cnt
*
samples_per_packets
],
samples_per_packets
);
openair0
.
trx_write_func
(
&
openair0
,
(
timestamp
+
samples_per_packets
*
tx_delay
-
tx_forward_nsamps
),
&
txdata
[
tx_cnt
*
samples_per_packets
],
samples_per_packets
,
1
);
rx_cnt
++
;
tx_cnt
++
;
}
#ifndef RTAI
//pthread_mutex_lock(&tti_mutex);
#endif
hw_subframe
++
;
slot
+=
2
;
if
(
hw_subframe
==
10
)
hw_subframe
=
0
;
#endif // USRP
if
(
oai_exit
)
break
;
if
(
frame
>
5
)
{
...
...
@@ -1206,8 +1229,14 @@ static void *eNB_thread(void *arg)
}
}
}
#ifndef USRP
slot
++
;
#else
if
(
rx_cnt
==
max_cnt
)
{
rx_cnt
=
0
;
}
#endif
if
(
slot
==
20
)
{
slot
=
0
;
frame
++
;
...
...
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