Commit 2a792c1c authored by Matthieu Kanj's avatar Matthieu Kanj

removing warnings (121 remaining)

parent 8df96ab5
...@@ -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;
......
This diff is collapsed.
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment