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
42fe39ec
Commit
42fe39ec
authored
Sep 08, 2020
by
Rakesh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moving gpio control to the rx
parent
98aefe94
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
executables/nr-ru.c
executables/nr-ru.c
+1
-1
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
+7
-1
No files found.
executables/nr-ru.c
View file @
42fe39ec
...
...
@@ -747,7 +747,7 @@ void tx_rf(RU_t *ru,int frame,int slot, uint64_t timestamp) {
// the beam index is written in bits 8-10 of the flags
// bit 11 enables the gpio programming
int
beam
=
0
;
if
(
slot
==
0
)
beam
=
11
;
//3 for boresight & 8 to enable
//
if (slot==0) beam = 11; //3 for boresight & 8 to enable
/*
if (slot==0 || slot==40) beam=0&8;
if (slot==10 || slot==50) beam=1&8;
...
...
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
View file @
42fe39ec
...
...
@@ -69,7 +69,7 @@
/** @addtogroup _USRP_PHY_RF_INTERFACE_
* @{
*/
int
gpio789
=
0
;
extern
int
usrp_tx_thread
;
...
...
@@ -708,6 +708,12 @@ static int trx_usrp_read(openair0_device *device, openair0_timestamp *ptimestamp
s
->
rx_timestamp
=
s
->
rx_md
.
time_spec
.
to_ticks
(
s
->
sample_rate
);
*
ptimestamp
=
s
->
rx_timestamp
;
// push GPIO bits 7-9 from flags_msb
s
->
usrp
->
set_command_time
(
uhd
::
time_spec_t
::
from_ticks
((
s
->
rx_timestamp
+
(
2
*
nsamps
)),
s
->
sample_rate
));
s
->
usrp
->
set_gpio_attr
(
"FP0"
,
"OUT"
,
gpio789
<<
7
,
0x380
);
s
->
usrp
->
clear_command_time
();
gpio789
=
(
gpio789
+
1
)
&
7
;
if
(
device
->
recplay_state
!=
NULL
)
{
// record mode
// Copy subframes to memory (later dump on a file)
if
(
device
->
recplay_state
->
nb_samples
<
device
->
openair0_cfg
->
recplay_conf
->
u_sf_max
)
{
...
...
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