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
ZhouShuya
OpenXG-RAN
Commits
2a792c1c
Commit
2a792c1c
authored
Sep 04, 2017
by
Matthieu Kanj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removing warnings (121 remaining)
parent
8df96ab5
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
189 additions
and
199 deletions
+189
-199
openair1/PHY/defs_NB_IoT.h
openair1/PHY/defs_NB_IoT.h
+9
-9
openair2/RRC/LITE/L2_interface_NB_IoT.c
openair2/RRC/LITE/L2_interface_NB_IoT.c
+170
-185
targets/RT/USER/lte-enb.c
targets/RT/USER/lte-enb.c
+10
-5
No files found.
openair1/PHY/defs_NB_IoT.h
View file @
2a792c1c
...
@@ -210,14 +210,14 @@ typedef struct {
...
@@ -210,14 +210,14 @@ typedef struct {
// SCHEDULED_ACCESS,
// SCHEDULED_ACCESS,
// CBA_ACCESS};
// CBA_ACCESS};
//
typedef enum {
typedef
enum
{
// eNodeB_3GPP
=0, // classical eNodeB function
eNodeB_3GPP_NB_IoT
=
0
,
// classical eNodeB function
// eNodeB_3GPP_BBU
, // eNodeB with NGFI IF5
eNodeB_3GPP_BBU_NB_IoT
,
// eNodeB with NGFI IF5
// NGFI_RCC_IF4p5
, // NGFI_RCC (NGFI radio cloud center)
NGFI_RCC_IF4p5_NB_IoT
,
// NGFI_RCC (NGFI radio cloud center)
// NGFI_RAU_IF4p5
,
NGFI_RAU_IF4p5_NB_IoT
,
// NGFI_RRU_IF5
, // NGFI_RRU (NGFI remote radio-unit,IF5)
NGFI_RRU_IF5_Nb_IoT
,
// NGFI_RRU (NGFI remote radio-unit,IF5)
// NGFI_RRU_IF4p5
// NGFI_RRU (NGFI remote radio-unit,IF4p5)
NGFI_RRU_IF4p5_NB_IoT
// NGFI_RRU (NGFI remote radio-unit,IF4p5)
//
} eNB_func_NB_IoT_t;
}
eNB_func_NB_IoT_t
;
typedef
enum
{
typedef
enum
{
...
@@ -510,7 +510,7 @@ typedef struct PHY_VARS_eNB_NB_IoT_s {
...
@@ -510,7 +510,7 @@ typedef struct PHY_VARS_eNB_NB_IoT_s {
module_id_t
Mod_id
;
module_id_t
Mod_id
;
uint8_t
CC_id
;
uint8_t
CC_id
;
eNB_proc_NB_IoT_t
proc
;
eNB_proc_NB_IoT_t
proc
;
//eNB_func_NB_IoT_t
node_function;
eNB_func_NB_IoT_t
node_function
;
eNB_timing_NB_IoT_t
node_timing
;
eNB_timing_NB_IoT_t
node_timing
;
eth_params_t
*
eth_params
;
eth_params_t
*
eth_params
;
int
single_thread_flag
;
int
single_thread_flag
;
...
...
openair2/RRC/LITE/L2_interface_NB_IoT.c
View file @
2a792c1c
This diff is collapsed.
Click to expand it.
targets/RT/USER/lte-enb.c
View file @
2a792c1c
...
@@ -72,9 +72,10 @@
...
@@ -72,9 +72,10 @@
#include "../../SIMU/USER/init_lte.h"
#include "../../SIMU/USER/init_lte.h"
//NB-IoT
//NB-IoT
#include "PHY/defs_NB_IoT.h"
#include "SCHED/defs_NB_IoT.h"
#include "SCHED/defs_NB_IoT.h"
#include "PHY_INTERFACE/IF_Module_NB_IoT.h"
#include "PHY/extern_NB_IoT.h"
#include "LAYER2/MAC/defs.h"
#include "LAYER2/MAC/defs.h"
#include "LAYER2/MAC/extern.h"
#include "LAYER2/MAC/extern.h"
#include "LAYER2/MAC/proto.h"
#include "LAYER2/MAC/proto.h"
...
@@ -582,7 +583,7 @@ int wait_CCs(eNB_rxtx_proc_t *proc) {
...
@@ -582,7 +583,7 @@ int wait_CCs(eNB_rxtx_proc_t *proc) {
*
*
* For the moment the NB-IoT implementation foresees a single thread implementation
* For the moment the NB-IoT implementation foresees a single thread implementation
* */
* */
static
inline
int
NB_rxtx
(
PHY_VARS_eNB
*
eNB
,
eNB_rxtx_proc
_t
*
proc
,
char
*
thread_name
)
{
static
inline
int
NB_rxtx
(
PHY_VARS_eNB
_NB_IoT
*
eNB
,
eNB_rxtx_proc_NB_IoT
_t
*
proc
,
char
*
thread_name
)
{
//Allocate memory for the structures used by PHY and MAC
//Allocate memory for the structures used by PHY and MAC
UL_IND_t
*
UL_INFO
;
UL_IND_t
*
UL_INFO
;
...
@@ -596,7 +597,7 @@ static inline int NB_rxtx(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc, char *thread_
...
@@ -596,7 +597,7 @@ static inline int NB_rxtx(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc, char *thread_
// ****************************************
// ****************************************
// Common RX procedures subframe n
// 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
);
eNB
->
do_prach
(
eNB
,
proc
->
frame_rx
,
proc
->
subframe_rx
);
/*UE-specific RX processing for subframe n*/
/*UE-specific RX processing for subframe n*/
...
@@ -669,8 +670,12 @@ static void* eNB_thread_rxtx( void* param ) {
...
@@ -669,8 +670,12 @@ static void* eNB_thread_rxtx( void* param ) {
static
int
eNB_thread_rxtx_status
;
static
int
eNB_thread_rxtx_status
;
eNB_rxtx_proc_t
*
proc
=
(
eNB_rxtx_proc_t
*
)
param
;
eNB_rxtx_proc_t
*
proc
=
(
eNB_rxtx_proc_t
*
)
param
;
eNB_rxtx_proc_NB_IoT_t
*
proc_NB_IoT
=
(
eNB_rxtx_proc_NB_IoT_t
*
)
param
;
// to remove when eNB_thread_rxtx_status is duplicated for NB-IoT
PHY_VARS_eNB
*
eNB
=
PHY_vars_eNB_g
[
0
][
proc
->
CC_id
];
PHY_VARS_eNB
*
eNB
=
PHY_vars_eNB_g
[
0
][
proc
->
CC_id
];
PHY_VARS_eNB_NB_IoT
*
eNB_NB_IoT
=
PHY_vars_eNB_NB_IoT_g
[
0
][
proc_NB_IoT
->
CC_id
];
// to remove when eNB_thread_rxtx_status is duplicated for NB-IoT
char
thread_name
[
100
];
char
thread_name
[
100
];
...
@@ -695,7 +700,7 @@ static void* eNB_thread_rxtx( void* param ) {
...
@@ -695,7 +700,7 @@ static void* eNB_thread_rxtx( void* param ) {
if
(
eNB
->
CC_id
==
0
)
if
(
eNB
->
CC_id
==
0
)
{
{
#ifdef NB_IOT
#ifdef NB_IOT
if
(
NB_rxtx
(
eNB
,
proc
,
thread_name
)
<
0
)
break
;
if
(
NB_rxtx
(
eNB
_NB_IoT
,
proc_NB_IoT
,
thread_name
)
<
0
)
break
;
#else
#else
if
(
rxtx
(
eNB
,
proc
,
thread_name
)
<
0
)
break
;
if
(
rxtx
(
eNB
,
proc
,
thread_name
)
<
0
)
break
;
#endif
#endif
...
...
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