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
canghaiwuhen
OpenXG-RAN
Commits
711a4fb9
Commit
711a4fb9
authored
Jun 16, 2017
by
Nick Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the initialization of the IF_Module at lte-softmodem main
parent
e3b21d8b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
openair2/PHY_INTERFACE/IF_Module_nb_iot.c
openair2/PHY_INTERFACE/IF_Module_nb_iot.c
+4
-4
openair2/PHY_INTERFACE/IF_Module_nb_iot.h
openair2/PHY_INTERFACE/IF_Module_nb_iot.h
+2
-2
targets/RT/USER/lte-softmodem.c
targets/RT/USER/lte-softmodem.c
+8
-0
No files found.
openair2/PHY_INTERFACE/IF_Module_nb_iot.c
View file @
711a4fb9
...
...
@@ -7,23 +7,23 @@
//called at initialization of L2
//TODO: define the input
IF_Module_t
*
IF_Module_init_L2
(
void
)
//southbound IF-Module Interface
void
IF_Module_init_L2
(
void
)
//southbound IF-Module Interface
{
//register the IF Module to MAC
if_inst
->
UL_indication
=
UL_indication
;
return
if_inst
;
//
return if_inst;
}
//called at initialization of L1
//TODO: define the input
IF_Module_t
*
IF_Module_init_L1
(
void
)
//northbound IF-Module Interface
void
IF_Module_init_L1
(
void
)
//northbound IF-Module Interface
{
//fill the Sched_Rsp_t
//fill the PHY_Config_t -->already done in rrc_mac_config
if_inst
->
schedule_response
=
schedule_response
;
if_inst
->
PHY_config_req
=
PHY_config_req
;
return
if_inst
;
//
return if_inst;
}
openair2/PHY_INTERFACE/IF_Module_nb_iot.h
View file @
711a4fb9
...
...
@@ -172,8 +172,8 @@ typedef struct IF_Module_s{
//int IF_Module_init(IF_Module_t *if_inst);
IF_Module_t
*
IF_Module_init_L1
(
void
);
IF_Module_t
*
IF_Module_init_L2
(
void
);
void
IF_Module_init_L1
(
void
);
void
IF_Module_init_L2
(
void
);
#endif
targets/RT/USER/lte-softmodem.c
View file @
711a4fb9
...
...
@@ -51,6 +51,7 @@
#include "LAYER2/MAC/proto.h"
#include "RRC/LITE/vars.h"
#include "PHY_INTERFACE/vars.h"
#include "PHY_INTERFACE/defs_nb_iot.h"
#ifdef SMBV
#include "PHY/TOOLS/smbv.h"
...
...
@@ -1622,6 +1623,8 @@ int main( int argc, char **argv ) {
//this is eNB
PHY_vars_eNB_g
=
malloc
(
sizeof
(
PHY_VARS_eNB
**
));
PHY_vars_eNB_g
[
0
]
=
malloc
(
sizeof
(
PHY_VARS_eNB
*
));
// do the initialization for the IF Module
if_inst
=
malloc
(
sizeof
(
IF_Module_t
*
));
for
(
CC_id
=
0
;
CC_id
<
MAX_NUM_CCs
;
CC_id
++
)
{
PHY_vars_eNB_g
[
0
][
CC_id
]
=
init_lte_eNB
(
frame_parms
[
CC_id
],
0
,
frame_parms
[
CC_id
]
->
Nid_cell
,
node_function
[
CC_id
],
abstraction_flag
);
...
...
@@ -1849,9 +1852,14 @@ int main( int argc, char **argv ) {
PHY_vars_UE_g
[
0
][
CC_id
]
->
rf_map
.
chain
=
CC_id
+
chain_offset
;
}
}
else
{
printf
(
"Initializing IF Module in PHY layer
\n
"
);
IF_Module_init_L1
();
printf
(
"Initializing eNB threads
\n
"
);
init_eNB
(
node_function
,
node_timing
,
1
,
eth_params
,
single_thread_flag
,
wait_for_sync
);
number_of_cards
=
1
;
for
(
CC_id
=
0
;
CC_id
<
MAX_NUM_CCs
;
CC_id
++
)
{
...
...
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