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
lizhongxiao
OpenXG-RAN
Commits
c2b3867f
Commit
c2b3867f
authored
Feb 25, 2020
by
WANG Tsu-Han
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for not using pointer to stash
parent
61a24472
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
executables/nr-ru.c
executables/nr-ru.c
+1
-1
targets/ARCH/COMMON/common_lib.h
targets/ARCH/COMMON/common_lib.h
+1
-1
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
+6
-5
No files found.
executables/nr-ru.c
View file @
c2b3867f
...
...
@@ -763,7 +763,7 @@ void tx_rf(RU_t *ru,int frame,int slot, uint64_t timestamp) {
txp
[
i
]
=
(
void
*
)
&
ru
->
common
.
txdata
[
i
][(
slot
*
fp
->
samples_per_slot
)
-
sf_extension
];
}
print_test
[
0
]
=
(
char
*
)
&
ru
->
common
.
txdata
[
0
][(
slot
*
fp
->
samples_per_slot
)
-
sf_extension
];
printf
(
"txdata[0] = %
d
\n
"
,
print_test
[
0
]);
printf
(
"txdata[0] = %
p
\n
"
,
print_test
[
0
]);
VCD_SIGNAL_DUMPER_DUMP_VARIABLE_BY_NAME
(
VCD_SIGNAL_DUMPER_VARIABLES_TRX_TST
,
(
timestamp
-
ru
->
openair0_cfg
.
tx_sample_advance
)
&
0xffffffff
);
...
...
targets/ARCH/COMMON/common_lib.h
View file @
c2b3867f
...
...
@@ -278,7 +278,7 @@ typedef struct {
typedef
struct
{
openair0_timestamp
timestamp
;
void
*
*
buff
;
// buffer to be write;
void
*
buff
[
8
]
;
// buffer to be write;
int
nsamps
;
int
cc
;
signed
char
first_packet
;
...
...
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
View file @
c2b3867f
...
...
@@ -440,7 +440,7 @@ static int trx_usrp_write(openair0_device *device, openair0_timestamp timestamp,
first_packet_state
=
false
;
last_packet_state
=
true
;
}
printf
(
"~~~1 buff in usrp write = %
d
\n
"
,
buff
[
0
]);
printf
(
"~~~1 buff in usrp write = %
p
\n
"
,
buff
[
0
]);
pthread_mutex_lock
(
&
write_thread
->
mutex_write
);
end
=
write_thread
->
end
;
printf
(
"package being write is %d
\n
"
,
end
);
...
...
@@ -449,8 +449,9 @@ printf("package being write is %d\n", end);
write_package
[
end
].
cc
=
cc
;
write_package
[
end
].
first_packet
=
first_packet_state
;
write_package
[
end
].
last_packet
=
last_packet_state
;
write_package
[
end
].
buff
=
buff
;
printf
(
"~~~2 write_package buff in usrp write = %d
\n
"
,
write_package
[
end
].
buff
[
0
]);
for
(
int
i
=
0
;
i
<
cc
;
i
++
)
write_package
[
end
].
buff
[
i
]
=
buff
[
i
];
printf
(
"~~~2 write_package buff in usrp write = %p
\n
"
,
write_package
[
end
].
buff
[
0
]);
write_thread
->
instance_cnt_write
=
0
;
write_thread
->
end
=
(
write_thread
->
end
+
1
)
%
write_thread
->
num_package
;
pthread_cond_signal
(
&
write_thread
->
cond_write
);
...
...
@@ -508,8 +509,8 @@ void *trx_usrp_write_thread(void * arg){
}
pthread_mutex_unlock
(
&
write_thread
->
mutex_write
);
printf
(
"end of write thread signal getting
\n
"
);
printf
(
"~~~2.5 write_package buff in thread = %
d
\n
"
,
write_package
[
start
].
buff
[
0
]);
printf
(
"~~~3 buff in tx write thread= %
d
\n
"
,
buff
[
0
]);
printf
(
"~~~2.5 write_package buff in thread = %
p
\n
"
,
write_package
[
start
].
buff
[
0
]);
printf
(
"~~~3 buff in tx write thread= %
p
\n
"
,
buff
[
0
]);
#if defined(__x86_64) || defined(__i386__)
#ifdef __AVX2__
...
...
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