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
wangjie
OpenXG-RAN
Commits
e0d927f0
Commit
e0d927f0
authored
Apr 16, 2021
by
Sakthivel Velumani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trying a fix for realtime issue
parent
e0780320
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
0 deletions
+11
-0
executables/nr-gnb.c
executables/nr-gnb.c
+2
-0
openair1/PHY/defs_gNB.h
openair1/PHY/defs_gNB.h
+1
-0
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
+6
-0
openair2/NR_PHY_INTERFACE/NR_IF_Module.h
openair2/NR_PHY_INTERFACE/NR_IF_Module.h
+2
-0
No files found.
executables/nr-gnb.c
View file @
e0d927f0
...
@@ -128,6 +128,7 @@ void tx_func(void *param) {
...
@@ -128,6 +128,7 @@ void tx_func(void *param) {
syncMsg
->
ru
=
gNB
->
RU_list
[
0
];
syncMsg
->
ru
=
gNB
->
RU_list
[
0
];
res
->
key
=
slot_tx
;
res
->
key
=
slot_tx
;
pushTpool
(
gNB
->
threadPool
,
res
);
pushTpool
(
gNB
->
threadPool
,
res
);
gNB
->
memclr_mac
(
gNB
->
Mod_id
,
gNB
->
CC_id
);
}
}
void
rx_func
(
void
*
param
)
{
void
rx_func
(
void
*
param
)
{
...
@@ -493,6 +494,7 @@ void init_gNB(int single_thread_flag,int wait_for_sync) {
...
@@ -493,6 +494,7 @@ void init_gNB(int single_thread_flag,int wait_for_sync) {
LOG_I
(
PHY
,
"Registering with MAC interface module (after %p)
\n
"
,
gNB
->
if_inst
);
LOG_I
(
PHY
,
"Registering with MAC interface module (after %p)
\n
"
,
gNB
->
if_inst
);
gNB
->
if_inst
->
NR_Schedule_response
=
nr_schedule_response
;
gNB
->
if_inst
->
NR_Schedule_response
=
nr_schedule_response
;
gNB
->
if_inst
->
NR_PHY_config_req
=
nr_phy_config_request
;
gNB
->
if_inst
->
NR_PHY_config_req
=
nr_phy_config_request
;
gNB
->
memclr_mac
=
memclr_mac
;
memset
((
void
*
)
&
gNB
->
UL_INFO
,
0
,
sizeof
(
gNB
->
UL_INFO
));
memset
((
void
*
)
&
gNB
->
UL_INFO
,
0
,
sizeof
(
gNB
->
UL_INFO
));
LOG_I
(
PHY
,
"Setting indication lists
\n
"
);
LOG_I
(
PHY
,
"Setting indication lists
\n
"
);
...
...
openair1/PHY/defs_gNB.h
View file @
e0d927f0
...
@@ -695,6 +695,7 @@ typedef struct PHY_VARS_gNB_s {
...
@@ -695,6 +695,7 @@ typedef struct PHY_VARS_gNB_s {
NR_IF_Module_t
*
if_inst
;
NR_IF_Module_t
*
if_inst
;
NR_UL_IND_t
UL_INFO
;
NR_UL_IND_t
UL_INFO
;
pthread_mutex_t
UL_INFO_mutex
;
pthread_mutex_t
UL_INFO_mutex
;
void
(
*
memclr_mac
)(
int
Mod_id
,
int
CC_id
);
/// NFAPI RX ULSCH information
/// NFAPI RX ULSCH information
nfapi_nr_rx_data_pdu_t
rx_pdu_list
[
MAX_UL_PDUS_PER_SLOT
];
nfapi_nr_rx_data_pdu_t
rx_pdu_list
[
MAX_UL_PDUS_PER_SLOT
];
...
...
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
View file @
e0d927f0
...
@@ -267,3 +267,9 @@ NR_IF_Module_t *NR_IF_Module_init(int Mod_id) {
...
@@ -267,3 +267,9 @@ NR_IF_Module_t *NR_IF_Module_init(int Mod_id) {
return
nr_if_inst
[
Mod_id
];
return
nr_if_inst
[
Mod_id
];
}
}
void
memclr_mac
(
int
Mod_id
,
int
CC_id
)
{
nfapi_nr_dl_tti_request_pdu_t
*
dl_tti_pdu_list
=
&
RC
.
nrmac
[
Mod_id
]
->
DL_req
[
CC_id
].
dl_tti_request_body
.
dl_tti_pdu_list
[
0
];
memset
(
dl_tti_pdu_list
,
0
,
sizeof
(
nfapi_nr_dl_tti_request_pdu_t
)
*
NFAPI_NR_MAX_DL_TTI_PDUS
);
}
openair2/NR_PHY_INTERFACE/NR_IF_Module.h
View file @
e0d927f0
...
@@ -120,6 +120,8 @@ typedef struct NR_IF_Module_s {
...
@@ -120,6 +120,8 @@ typedef struct NR_IF_Module_s {
/*Initial */
/*Initial */
NR_IF_Module_t
*
NR_IF_Module_init
(
int
Mod_id
);
NR_IF_Module_t
*
NR_IF_Module_init
(
int
Mod_id
);
void
memclr_mac
(
int
Mod_id
,
int
CC_id
);
void
NR_IF_Module_kill
(
int
Mod_id
);
void
NR_IF_Module_kill
(
int
Mod_id
);
void
NR_UL_indication
(
NR_UL_IND_t
*
UL_INFO
);
void
NR_UL_indication
(
NR_UL_IND_t
*
UL_INFO
);
...
...
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