Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mingxuan Li
openairinterface5G
Commits
3d03e522
Commit
3d03e522
authored
2 years ago
by
Florian Kaltenberger
Committed by
Robert Schmidt
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
patch from Robert to fix segfault
parent
9948d972
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
radio/USRP/USERSPACE/LIB/usrp_lib.cpp
+4
-4
4 additions, 4 deletions
radio/USRP/USERSPACE/LIB/usrp_lib.cpp
with
4 additions
and
4 deletions
radio/USRP/USERSPACE/LIB/usrp_lib.cpp
+
4
−
4
View file @
3d03e522
...
...
@@ -88,7 +88,7 @@ typedef struct {
int
tx_forward_nsamps
;
//166 for 20Mhz
//! gpio bank to use
std
::
string
gpio_bank
;
char
*
gpio_bank
;
// --------------------------------
// Debug and output control
...
...
@@ -271,13 +271,13 @@ static int sync_to_gps(openair0_device *device) {
static
int
trx_usrp_start
(
openair0_device
*
device
)
{
usrp_state_t
*
s
=
(
usrp_state_t
*
)
device
->
priv
;
s
->
gpio_bank
=
"FP0"
;
//good for B210, X310 and N310
s
->
gpio_bank
=
(
char
*
)
"FP0"
;
//good for B210, X310 and N310
#if UHD_VERSION>4000000
if
(
device
->
type
==
USRP_X400_DEV
)
{
// Set every pin on GPIO0 to be controlled by DB0_RF0
std
::
vector
<
std
::
string
>
sxx
{
12
,
"DB0_RF0"
};
s
->
gpio_bank
=
"GPIO0"
;
s
->
gpio_bank
=
(
char
*
)
"GPIO0"
;
s
->
usrp
->
set_gpio_src
(
s
->
gpio_bank
,
sxx
);
}
#endif
...
...
@@ -1001,7 +1001,7 @@ extern "C" {
int
choffset
=
0
;
if
(
device
->
priv
==
NULL
)
{
s
=
(
usrp_state_t
*
)
calloc
(
sizeof
(
usrp_state_t
)
,
1
);
s
=
(
usrp_state_t
*
)
calloc
(
1
,
sizeof
(
usrp_state_t
));
device
->
priv
=
s
;
AssertFatal
(
s
!=
NULL
,
"USRP device: memory allocation failure
\n
"
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment