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
05cb48d2
Commit
05cb48d2
authored
Oct 13, 2023
by
ue1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GPIO changes
parent
911bd2be
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
executables/nr-ue.c
executables/nr-ue.c
+1
-0
radio/USRP/usrp_lib.cpp
radio/USRP/usrp_lib.cpp
+3
-2
No files found.
executables/nr-ue.c
View file @
05cb48d2
...
...
@@ -890,6 +890,7 @@ void *UE_thread(void *arg)
if
(
is_sidelink
)
{
fp
=
&
UE
->
SL_UE_PHY_PARAMS
.
sl_frame_params
;
sl_cfg
=
&
UE
->
SL_UE_PHY_PARAMS
.
sl_config
;
openair0_cfg
[
0
].
gpio_controller
=
RU_GPIO_CONTROL_GENERIC
;
}
AssertFatal
(
0
==
openair0_device_load
(
&
(
UE
->
rfdevice
),
&
openair0_cfg
[
0
]),
""
);
UE
->
rfdevice
.
host_type
=
RAU_HOST
;
...
...
radio/USRP/usrp_lib.cpp
View file @
05cb48d2
...
...
@@ -261,8 +261,8 @@ static int sync_to_gps(openair0_device *device) {
}
#define ATR_MASK 0x7f //pins controlled by ATR
#define ATR_RX 0x
50 //data[4
] and data[6]
#define ATR_XX 0x
20 //data[5
]
#define ATR_RX 0x
70 //data[4],data[5
] and data[6]
#define ATR_XX 0x
08 //data[3
]
#define MAN_MASK ATR_MASK ^ 0xFFF // manually controlled pins
static
void
trx_usrp_start_interdigital_gpio
(
openair0_device
*
device
,
usrp_state_t
*
s
)
...
...
@@ -286,6 +286,7 @@ static void trx_usrp_start_interdigital_gpio(openair0_device *device, usrp_state
static
void
trx_usrp_start_generic_gpio
(
openair0_device
*
device
,
usrp_state_t
*
s
)
{
LOG_I
(
HW
,
"Setting Generic GPIO
\n
"
);
// setup GPIO for TDD, GPIO(4) = ATR_RX
// set data direction register (DDR) to output
s
->
usrp
->
set_gpio_attr
(
s
->
gpio_bank
,
"DDR"
,
0xfff
,
0xfff
);
...
...
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