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
89264079
Commit
89264079
authored
Sep 26, 2019
by
chenhsunyang0922
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix lte-enb-nbiot.c
parent
00b6fe81
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
12 deletions
+19
-12
openair1/PHY/defs_L1_NB_IoT.h
openair1/PHY/defs_L1_NB_IoT.h
+2
-0
openair1/PHY/defs_eNB.h
openair1/PHY/defs_eNB.h
+2
-0
targets/RT/USER/lte-enb-nbiot.c
targets/RT/USER/lte-enb-nbiot.c
+8
-7
targets/SIMU/USER/init_lte.h
targets/SIMU/USER/init_lte.h
+7
-5
No files found.
openair1/PHY/defs_L1_NB_IoT.h
View file @
89264079
...
...
@@ -166,6 +166,7 @@ enum transmission_access_mode {
SCHEDULED_ACCESS,
CBA_ACCESS};
typedef enum {
eNodeB_3GPP=0, // classical eNodeB function
eNodeB_3GPP_BBU, // eNodeB with NGFI IF5
...
...
@@ -175,6 +176,7 @@ typedef enum {
NGFI_RRU_IF4p5 // NGFI_RRU (NGFI remote radio-unit,IF4p5)
} eNB_func_t;
typedef enum {
synch_to_ext_device=0, // synch to RF or Ethernet device
synch_to_other // synch to another source (timer, other CC_id)
...
...
openair1/PHY/defs_eNB.h
View file @
89264079
...
...
@@ -758,6 +758,8 @@ typedef struct {
pthread_cond_t
cond_RUs
;
/// mutex for RXn-TXnp4 processing thread
pthread_mutex_t
mutex_RUs
;
uint16_t
HFN
;
}
L1_rxtx_proc_t
;
typedef
struct
{
...
...
targets/RT/USER/lte-enb-nbiot.c
View file @
89264079
...
...
@@ -90,7 +90,7 @@ unsigned short config_frames[4] = {2,9,11,13};
#include "UTIL/OTG/otg_tx.h"
#include "UTIL/OTG/otg_externs.h"
#include "UTIL/MATH/oml.h"
#include "
UTIL
/LOG/vcd_signal_dumper.h"
#include "
common/utils
/LOG/vcd_signal_dumper.h"
#include "UTIL/OPT/opt.h"
#include "enb_config.h"
//#include "PHY/TOOLS/time_meas.h"
...
...
@@ -109,21 +109,22 @@ unsigned short config_frames[4] = {2,9,11,13};
#endif
#include "T.h"
extern
volatile
int
oai_exit
;
void
init_eNB_NB_IoT
(
eNB_func_
t
node_function
[],
eNB_timing
_t
node_timing
[],
int
nb_inst
,
eth_params_t
*
,
int
,
int
);
extern
void
do_prach
(
PHY_VARS_eNB
*
eNB
,
int
frame
,
int
subframe
);
void
init_eNB_NB_IoT
(
eNB_func_
NB_IoT_t
node_function
[],
eNB_timing_NB_IoT
_t
node_timing
[],
int
nb_inst
,
eth_params_t
*
,
int
,
int
);
extern
void
do_prach
(
PHY_VARS_eNB
_NB_IoT
*
eNB
,
int
frame
,
int
subframe
);
//Modify for NB-IoT merge
static
inline
int
rxtx_NB_IoT
(
PHY_VARS_eNB
*
eNB
,
L1_rxtx_proc_t
*
proc
,
char
*
thread_name
)
{
static
inline
int
rxtx_NB_IoT
(
PHY_VARS_eNB
_NB_IoT
*
eNB
,
L1_rxtx_proc_t
*
proc
,
char
*
thread_name
)
{
///start_meas(&softmodem_stats_rxtx_sf);
// ****************************************
// Common RX procedures subframe n
if
((
eNB
->
do_prach
)
&&
((
eNB
->
node_function
!=
NGFI_RCC_IF4p5
)))
if
((
eNB
->
do_prach
)
&&
((
eNB
->
node_function
!=
NGFI_RCC_IF4p5
_NB_IoT
)))
eNB
->
do_prach
(
eNB
,
proc
->
frame_rx
,
proc
->
subframe_rx
);
phy_procedures_eNB_common_RX
(
eNB
,
proc
);
...
...
@@ -145,7 +146,7 @@ static inline int rxtx_NB_IoT(PHY_VARS_eNB *eNB,L1_rxtx_proc_t *proc, char *thre
eNB
->
UL_INFO
.
CC_id
=
eNB
->
CC_id
;
eNB
->
UL_INFO
.
hypersfn
=
proc
->
HFN
;
eNB
->
if_inst
->
UL_indication
(
&
eNB
->
UL_INFO
);
eNB
->
if_inst
_NB_IoT
->
UL_indication
(
&
eNB
->
UL_INFO
);
pthread_mutex_unlock
(
&
eNB
->
UL_INFO_mutex
);
...
...
@@ -210,7 +211,7 @@ static void* eNB_thread_prach_NB_IoT( void* param ) {
///Modify to NB-IoT merge
void
init_eNB_NB_IoT
(
eNB_func_
t
node_function
[],
eNB_timing
_t
node_timing
[],
int
nb_inst
,
eth_params_t
*
eth_params
,
int
single_thread_flag
,
int
wait_for_sync
)
{
void
init_eNB_NB_IoT
(
eNB_func_
NB_IoT_t
node_function
[],
eNB_timing_NB_IoT
_t
node_timing
[],
int
nb_inst
,
eth_params_t
*
eth_params
,
int
single_thread_flag
,
int
wait_for_sync
)
{
int
CC_id
;
int
inst
;
...
...
targets/SIMU/USER/init_lte.h
View file @
89264079
...
...
@@ -21,18 +21,20 @@
#include "PHY/types.h"
#include "PHY/defs_eNB.h"
#include "PHY/defs_L1_NB_IoT.h"
#include "PHY/defs_common.h"
PHY_VARS_eNB
*
init_lte_eNB
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
uint8_t
eNB_id
,
uint16_t
Nid_cell
,
eNB_func_t
node_function
,
node_function_t
node_function
,
uint8_t
abstraction_flag
);
PHY_VARS_UE
*
init_lte_UE
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
uint8_t
UE_id
,
uint8_t
abstraction_flag
);
PHY_VARS_RN
*
init_lte_RN
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
PHY_VARS_RN
_NB_IoT
*
init_lte_RN
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
uint8_t
RN_id
,
uint8_t
eMBMS_active_state
);
...
...
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