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
alex037yang
OpenXG-RAN
Commits
9d72f65e
Commit
9d72f65e
authored
Feb 23, 2021
by
Laurent Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small fix
parent
a6136177
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
openair1/PHY/TOOLS/nr_phy_scope.c
openair1/PHY/TOOLS/nr_phy_scope.c
+7
-4
openair1/PHY/defs_gNB.h
openair1/PHY/defs_gNB.h
+1
-1
targets/ARCH/rfsimulator/stored_node.c
targets/ARCH/rfsimulator/stored_node.c
+2
-2
No files found.
openair1/PHY/TOOLS/nr_phy_scope.c
View file @
9d72f65e
...
...
@@ -38,10 +38,7 @@ int otg_enabled;
const
FL_COLOR
rx_antenna_colors
[
4
]
=
{
FL_RED
,
FL_BLUE
,
FL_GREEN
,
FL_YELLOW
};
const
FL_COLOR
water_colors
[
4
]
=
{
FL_BLUE
,
FL_GREEN
,
FL_YELLOW
,
FL_RED
};
typedef
struct
{
int16_t
r
;
int16_t
i
;
}
scopeSample_t
;
typedef
struct
complex16
scopeSample_t
;
#define SquaredNorm(VaR) ((VaR).r*(VaR).r+(VaR).i*(VaR).i)
typedef
struct
OAIgraph
{
...
...
@@ -546,6 +543,12 @@ static void *scope_thread_gNB(void *arg) {
pthread_attr_init
(
&
atr
);
pthread_attr_getstacksize
(
&
atr
,
&
stksize
);
pthread_attr_setstacksize
(
&
atr
,
32
*
1024
*
1024
);
p
.
gNB
->
scopeData
=
calloc
(
sizeof
(
nrscope_t
));
nrscope_t
scope
=
(
nrscope_t
*
)
p
.
gNB
->
scopeData
;
scope
->
rxdataF
=
(
int32_t
**
)
malloc16
(
Prx
*
sizeof
(
int32_t
*
));
for
(
int
i
=
0
;
i
<
p
.
gNB
->
gNB_config
.
carrier_config
.
num_rx_ant
.
value
;
;
i
++
)
scope
->
rxdataF
[
i
]
=
(
scopeSample_t
*
)
malloc16_clear
(
p
->
gNB
.
frme_parms
.
samples_per_frame_wCP
*
sizeof
(
scopeSample_t
));
sleep
(
3
);
// no clean interthread barriers
int
fl_argc
=
1
;
char
*
name
=
"5G-gNB-scope"
;
...
...
openair1/PHY/defs_gNB.h
View file @
9d72f65e
...
...
@@ -833,7 +833,7 @@ typedef struct PHY_VARS_gNB_s {
tpool_t
*
threadPool
;
int
nbDecode
;
uint8_t
pusch_proc_threads
;
void
*
scopeData
;
}
PHY_VARS_gNB
;
typedef
struct
LDPCDecode_s
{
...
...
targets/ARCH/rfsimulator/stored_node.c
View file @
9d72f65e
...
...
@@ -186,14 +186,14 @@ int main(int argc, char *argv[]) {
serviceSock
=
client_start
(
argv
[
2
],
atoi
(
argv
[
3
]));
}
uint64_t
typeStamp
=
ENB_MAGICDL
_FDD
;
uint64_t
typeStamp
=
ENB_MAGICDL
;
boolean_t
raw
=
false
;
if
(
argc
==
5
)
{
raw
=
true
;
if
(
strcmp
(
argv
[
4
],
"UL"
)
==
0
)
typeStamp
=
UE_MAGICDL
_FDD
;
typeStamp
=
UE_MAGICDL
;
}
samplesBlockHeader_t
header
;
...
...
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