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
30f0942d
Commit
30f0942d
authored
Feb 23, 2023
by
Florian Kaltenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for the case multiple USRP devices are specified in the config string
parent
914b4703
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
maketags
maketags
+1
-1
radio/USRP/USERSPACE/LIB/usrp_lib.cpp
radio/USRP/USERSPACE/LIB/usrp_lib.cpp
+16
-6
No files found.
maketags
View file @
30f0942d
#!/bin/sh
echo
"building ctags for openair1 and openair2 ..."
ctags
-e
-R
--exclude
=
openair1/DOCS/
--exclude
=
openair2/DOCS/
--exclude
=
openair1/SIMULATION/
--exclude
=
targets/DOCS/
--exclude
=
targets/PROJECTS/ openair1 openair2 openair3 targets cmake_targets common nfapi executables
sdr
ctags
-e
-R
--exclude
=
openair1/DOCS/
--exclude
=
openair2/DOCS/
--exclude
=
openair1/SIMULATION/
--exclude
=
targets/DOCS/
--exclude
=
targets/PROJECTS/ openair1 openair2 openair3 targets cmake_targets common nfapi executables
radio
radio/USRP/USERSPACE/LIB/usrp_lib.cpp
View file @
30f0942d
...
...
@@ -1067,18 +1067,28 @@ extern "C" {
return
-
1
;
}
LOG_I
(
HW
,
"Found USRP %s
\n
"
,
device_adds
[
0
].
get
(
"type"
).
c_str
());
std
::
string
type_str
,
product_str
;
if
(
args
.
find
(
"addr0"
)
!=
std
::
string
::
npos
)
{
type_str
=
"type0"
;
product_str
=
"product0"
;
}
else
{
type_str
=
"type"
;
product_str
=
"product"
;
}
LOG_I
(
HW
,
"Found USRP %s
\n
"
,
device_adds
[
0
].
get
(
type_str
).
c_str
());
double
usrp_master_clock
;
if
(
device_adds
[
0
].
get
(
"type"
)
==
"b200"
)
{
if
(
device_adds
[
0
].
get
(
type_str
)
==
"b200"
)
{
device
->
type
=
USRP_B200_DEV
;
usrp_master_clock
=
30.72e6
;
args
+=
boost
::
str
(
boost
::
format
(
",master_clock_rate=%f"
)
%
usrp_master_clock
);
args
+=
",num_send_frames=256,num_recv_frames=256, send_frame_size=7680, recv_frame_size=7680"
;
}
if
(
device_adds
[
0
].
get
(
"type"
)
==
"n3xx"
)
{
const
std
::
string
product
=
device_adds
[
0
].
get
(
"product"
);
if
(
device_adds
[
0
].
get
(
type_str
)
==
"n3xx"
)
{
const
std
::
string
product
=
device_adds
[
0
].
get
(
product_str
);
printf
(
"Found USRP %s
\n
"
,
product
.
c_str
());
device
->
type
=
USRP_N300_DEV
;
if
(
product
==
"n320"
)
...
...
@@ -1091,7 +1101,7 @@ extern "C" {
LOG_W
(
HW
,
"Can't set kernel parameters for N3x0
\n
"
);
}
if
(
device_adds
[
0
].
get
(
"type"
)
==
"x300"
)
{
if
(
device_adds
[
0
].
get
(
type_str
)
==
"x300"
)
{
printf
(
"Found USRP x300
\n
"
);
device
->
type
=
USRP_X300_DEV
;
usrp_master_clock
=
184.32e6
;
...
...
@@ -1102,7 +1112,7 @@ extern "C" {
LOG_W
(
HW
,
"Can't set kernel parameters for X3xx
\n
"
);
}
if
(
device_adds
[
0
].
get
(
"type"
)
==
"x4xx"
)
{
if
(
device_adds
[
0
].
get
(
type_str
)
==
"x4xx"
)
{
printf
(
"Found USRP x400
\n
"
);
device
->
type
=
USRP_X400_DEV
;
usrp_master_clock
=
245.76e6
;
...
...
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