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
zzha zzha
OpenXG-RAN
Commits
bfafd788
Commit
bfafd788
authored
Dec 22, 2014
by
ghaddab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@6312
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
ed8503c3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
targets/RT/USER/rrh.c
targets/RT/USER/rrh.c
+5
-5
No files found.
targets/RT/USER/rrh.c
View file @
bfafd788
...
...
@@ -61,7 +61,7 @@
//#define RRH_UE_DEST_IP "192.168.12.148" //Hecatonchire ip address
#define RRH_UE_DEST_IP "192.168.12.196" //Haswell ip address
#define FRAME_MAX_SIZE
76800*4
#define FRAME_MAX_SIZE
307200
#define DEFAULT_PERIOD_NS 133333
typedef
struct
{
...
...
@@ -418,12 +418,12 @@ void *rrh_UE_thread(void *arg) {
if
((
timestamp_UE_rx
[
antenna_index
]
%
(
FRAME_MAX_SIZE
)
+
nsamps
)
>
FRAME_MAX_SIZE
)
// Wrap around if nsamps exceeds the buffer limit
{
if
((
timestamp_eNB_tx
[
antenna_index
]
%
FRAME_MAX_SIZE
<
nsamps
)
&&
(
eNB_tx_started
==
1
))
if
((
(
timestamp_eNB_tx
[
antenna_index
]
%
(
FRAME_MAX_SIZE
))
<
((
timestamp_UE_rx
[
antenna_index
]
+
nsamps
)
%
(
FRAME_MAX_SIZE
))
)
&&
(
eNB_tx_started
==
1
))
{
printf
(
"UE underflow timestamp_UE_rx : %d, timestamp_eNB_tx : %d
\n
"
,(
int
)(
timestamp_UE_rx
[
antenna_index
]
%
(
FRAME_MAX_SIZE
)),(
int
)(
timestamp_eNB_tx
[
antenna_index
]
%
FRAME_MAX_SIZE
));
printf
(
"UE underflow
wraparound
timestamp_UE_rx : %d, timestamp_eNB_tx : %d
\n
"
,(
int
)(
timestamp_UE_rx
[
antenna_index
]
%
(
FRAME_MAX_SIZE
)),(
int
)(
timestamp_eNB_tx
[
antenna_index
]
%
FRAME_MAX_SIZE
));
if
(
NRT_FLAG
==
1
)
{
while
((
timestamp_eNB_tx
[
antenna_index
]
%
FRAME_MAX_SIZE
)
<
nsamps
)
while
((
timestamp_eNB_tx
[
antenna_index
]
%
FRAME_MAX_SIZE
)
<
((
timestamp_UE_rx
[
antenna_index
]
+
nsamps
)
%
(
FRAME_MAX_SIZE
))
)
nanosleep
(
&
time_req_1us
,
&
time_rem_1us
);
}
}
...
...
@@ -619,7 +619,7 @@ void *rrh_eNB_thread(void *arg) {
if
((
timestamp_eNB_rx
[
antenna_index
]
%
(
FRAME_MAX_SIZE
)
+
nsamps
)
>
FRAME_MAX_SIZE
)
// Wrap around if nsamps exceeds the buffer limit
{
if
((
timestamp_UE_tx
[
antenna_index
]
%
FRAME_MAX_SIZE
<
nsamps
)
&&
(
UE_tx_started
==
1
))
if
((
timestamp_UE_tx
[
antenna_index
]
%
FRAME_MAX_SIZE
<
((
timestamp_eNB_rx
[
antenna_index
]
+
nsamps
)
%
FRAME_MAX_SIZE
)
)
&&
(
UE_tx_started
==
1
))
{
printf
(
"eNB underflow
\n
"
);
if
(
NRT_FLAG
==
1
)
...
...
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