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
ba5e3e74
Commit
ba5e3e74
authored
Jan 26, 2018
by
Younes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clock source / timing source split.
MTU tuning removed for now.
parent
22638ba0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
3 deletions
+24
-3
targets/ARCH/COMMON/common_lib.h
targets/ARCH/COMMON/common_lib.h
+2
-0
targets/ARCH/ETHERNET/USERSPACE/LIB/ethernet_lib.c
targets/ARCH/ETHERNET/USERSPACE/LIB/ethernet_lib.c
+1
-1
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
+20
-1
targets/RT/USER/lte-ru.c
targets/RT/USER/lte-ru.c
+1
-1
No files found.
targets/ARCH/COMMON/common_lib.h
View file @
ba5e3e74
...
...
@@ -199,6 +199,8 @@ typedef struct {
double
tx_bw
;
//! clock source
clock_source_t
clock_source
;
//! timing_source
clock_source_t
timing_source
;
//! Auto calibration flag
int
autocal
[
4
];
//! rf devices work with x bits iqs when oai have its own iq format
...
...
targets/ARCH/ETHERNET/USERSPACE/LIB/ethernet_lib.c
View file @
ba5e3e74
...
...
@@ -116,7 +116,7 @@ int trx_eth_start(openair0_device *device) {
*/
/* adjust MTU wrt number of samples per packet */
if
(
ethernet_tune
(
device
,
MTU_SIZE
,
UDP_IF4p5_PRACH_SIZE_BYTES
)
!=
0
)
return
-
1
;
//
if(ethernet_tune (device,MTU_SIZE,UDP_IF4p5_PRACH_SIZE_BYTES)!=0) return -1;
...
...
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
View file @
ba5e3e74
...
...
@@ -1004,6 +1004,15 @@ extern "C" {
else
s
->
usrp
->
set_clock_source
(
"external"
);
if
(
openair0_cfg
[
0
].
time_source
==
internal
){
LOG_I
(
PHY
,
"Setting time source to internal
\n
"
);
s
->
usrp
->
set_time_source
(
"internal"
);
}
else
{
LOG_I
(
PHY
,
"Setting time source to external
\n
"
);
s
->
usrp
->
set_time_source
(
"external"
);
}
//Setting device type to USRP X300/X310
device
->
type
=
USRP_X300_DEV
;
...
...
@@ -1062,13 +1071,23 @@ extern "C" {
// lock mboard clocks
if
(
openair0_cfg
[
0
].
clock_source
==
internal
){
LOG_I
(
PHY
,
"Setting clock source to internal
\n
"
);
s
->
usrp
->
set_clock_source
(
"internal"
);
}
else
{
LOG_I
(
PHY
,
"Setting clock source to external
\n
"
);
s
->
usrp
->
set_clock_source
(
"external"
);
}
if
(
openair0_cfg
[
0
].
time_source
==
internal
){
LOG_I
(
PHY
,
"Setting time source to internal
\n
"
);
s
->
usrp
->
set_time_source
(
"internal"
);
}
else
{
LOG_I
(
PHY
,
"Setting time source to external
\n
"
);
s
->
usrp
->
set_time_source
(
"external"
);
}
device
->
type
=
USRP_B200_DEV
;
if
((
vers
==
3
)
&&
(
subvers
==
9
)
&&
(
subsubvers
>=
2
))
{
openair0_cfg
[
0
].
rx_gain_calib_table
=
calib_table_b210
;
...
...
targets/RT/USER/lte-ru.c
View file @
ba5e3e74
...
...
@@ -1880,7 +1880,7 @@ void *ru_thread_synch(void *arg) {
ru
->
state
=
RU_RUN
;
}
// symc_pos > 0
else
{
if
(
cnt
>
5
0
)
{
if
(
cnt
>
100
0
)
{
write_output
(
"ru_sync.m"
,
"sync"
,(
void
*
)
&
sync_corr
[
0
],
fp
->
samples_per_tti
*
5
,
1
,
2
);
write_output
(
"ru_rx.m"
,
"rxs"
,(
void
*
)
ru
->
common
.
rxdata
[
0
],
fp
->
samples_per_tti
*
10
,
1
,
1
);
exit
(
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