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
spbro
OpenXG-RAN
Commits
3ac6e3e5
Commit
3ac6e3e5
authored
Sep 04, 2019
by
Wang Tsu-Han
Committed by
Florian Kaltenberger
Sep 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing for sampling rate
parent
0911624f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
22 deletions
+3
-22
executables/nr-ru.c
executables/nr-ru.c
+3
-6
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
+0
-16
No files found.
executables/nr-ru.c
View file @
3ac6e3e5
...
@@ -1079,13 +1079,10 @@ void fill_rf_config(RU_t *ru, char *rf_config_file) {
...
@@ -1079,13 +1079,10 @@ void fill_rf_config(RU_t *ru, char *rf_config_file) {
}
else
if
(
mu
==
NR_MU_1
)
{
}
else
if
(
mu
==
NR_MU_1
)
{
if
(
N_RB
==
273
)
{
if
(
N_RB
==
273
)
{
if
(
fp
->
threequarter_fs
)
{
if
(
fp
->
threequarter_fs
)
{
cfg
->
sample_rate
=
115.2e6
;
AssertFatal
(
0
==
1
,
"three quarter sampling not supported for N_RB 273
\n
"
);
cfg
->
samples_per_frame
=
1152000
;
cfg
->
tx_bw
=
100e6
;
cfg
->
rx_bw
=
100e6
;
}
else
{
}
else
{
cfg
->
sample_rate
=
1
53.6
e6
;
cfg
->
sample_rate
=
1
22.88
e6
;
cfg
->
samples_per_frame
=
1
5360
00
;
cfg
->
samples_per_frame
=
1
2288
00
;
cfg
->
tx_bw
=
100e6
;
cfg
->
tx_bw
=
100e6
;
cfg
->
rx_bw
=
100e6
;
cfg
->
rx_bw
=
100e6
;
}
}
...
...
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
View file @
3ac6e3e5
...
@@ -1191,22 +1191,6 @@ extern "C" {
...
@@ -1191,22 +1191,6 @@ extern "C" {
LOG_I
(
HW
,
"%s() sample_rate:%u
\n
"
,
__FUNCTION__
,
(
int
)
openair0_cfg
[
0
].
sample_rate
);
LOG_I
(
HW
,
"%s() sample_rate:%u
\n
"
,
__FUNCTION__
,
(
int
)
openair0_cfg
[
0
].
sample_rate
);
switch
((
int
)
openair0_cfg
[
0
].
sample_rate
)
{
switch
((
int
)
openair0_cfg
[
0
].
sample_rate
)
{
case
153600000
:
// from usrp_time_offset
//openair0_cfg[0].samples_per_packet = 2048;
openair0_cfg
[
0
].
tx_sample_advance
=
15
;
//to be checked
openair0_cfg
[
0
].
tx_bw
=
100e6
;
openair0_cfg
[
0
].
rx_bw
=
100e6
;
break
;
case
115200000
:
// from usrp_time_offset
//openair0_cfg[0].samples_per_packet = 2048;
openair0_cfg
[
0
].
tx_sample_advance
=
15
;
//to be checked
openair0_cfg
[
0
].
tx_bw
=
100e6
;
openair0_cfg
[
0
].
rx_bw
=
100e6
;
break
;
case
122880000
:
case
122880000
:
// from usrp_time_offset
// from usrp_time_offset
//openair0_cfg[0].samples_per_packet = 2048;
//openair0_cfg[0].samples_per_packet = 2048;
...
...
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