Commit d18c853f authored by Matthieu Kanj's avatar Matthieu Kanj

removing .h files form openair2/RRC/LITE/extern_NB_IoT.h

parent 582c5777
...@@ -108,8 +108,8 @@ extern EMULATION_VARS *Emul_vars; ...@@ -108,8 +108,8 @@ extern EMULATION_VARS *Emul_vars;
// extern DCI0_5MHz_TDD_1_6_t UL_alloc_pdu; // extern DCI0_5MHz_TDD_1_6_t UL_alloc_pdu;
// extern DCI1A_5MHz_TDD_1_6_t RA_alloc_pdu; extern DCI1A_5MHz_TDD_1_6_t RA_alloc_pdu;
// extern DCI1A_5MHz_TDD_1_6_t DLSCH_alloc_pdu1A; extern DCI1A_5MHz_TDD_1_6_t DLSCH_alloc_pdu1A;
// extern DCI1A_5MHz_TDD_1_6_t BCCH_alloc_pdu; // extern DCI1A_5MHz_TDD_1_6_t BCCH_alloc_pdu;
// extern DCI1A_5MHz_TDD_1_6_t CCCH_alloc_pdu; // extern DCI1A_5MHz_TDD_1_6_t CCCH_alloc_pdu;
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
//#include "PHY/defs.h" //#include "PHY/defs.h"
#include "PHY/defs_NB_IoT.h" #include "PHY/defs_NB_IoT.h"
#include "openair2/LAYER2/MAC/proto_NB_IoT.h" #include "openair2/LAYER2/MAC/proto_NB_IoT.h"
#include "openair2/LAYER2/MAC/extern_NB_IoT.h"
//#include "PHY/INIT/defs_NB_IoT.h" //#include "PHY/INIT/defs_NB_IoT.h"
//#include "SCHED/defs.h" //#include "SCHED/defs.h"
//#include "platform_types.h" //#include "platform_types.h"
......
...@@ -30,10 +30,11 @@ ...@@ -30,10 +30,11 @@
#ifndef __OPENAIR_RRC_EXTERN_NB_IOT_H__ #ifndef __OPENAIR_RRC_EXTERN_NB_IOT_H__
#define __OPENAIR_RRC_EXTERN_NB_IOT_H__ #define __OPENAIR_RRC_EXTERN_NB_IOT_H__
#include "defs_NB_IoT.h" #include "RRC/LITE/defs_NB_IoT.h"
#include "COMMON/mac_rrc_primitives.h" //#include "COMMON/mac_rrc_primitives.h"
#include "LAYER2/MAC/defs.h" #include "PHY_INTERFACE/IF_Module_NB_IoT.h"
#include "LAYER2/MAC/extern.h" //#include "LAYER2/MAC/defs.h"
//#include "LAYER2/MAC/extern.h"
#include "LAYER2/RLC/rlc.h" #include "LAYER2/RLC/rlc.h"
#include "LogicalChannelConfig-NB-r13.h" #include "LogicalChannelConfig-NB-r13.h"
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include "pdcp.h" #include "pdcp.h"
#include "rlc.h" #include "rlc.h"
#include "extern_NB_IoT.h" #include "extern_NB_IoT.h"
#include "LAYER2/MAC/defs_NB_IoT.h"
/*NOTE: no static function should be declared in this header file (e.g. init_SI_NB)*/ /*NOTE: no static function should be declared in this header file (e.g. init_SI_NB)*/
/*------------------------common_nb_iot.c----------------------------------------*/ /*------------------------common_nb_iot.c----------------------------------------*/
......
...@@ -60,7 +60,7 @@ uid_linear_allocator_new_NB_IoT( ...@@ -60,7 +60,7 @@ uid_linear_allocator_new_NB_IoT(
uid_t uid = 0; uid_t uid = 0;
uid_allocator_NB_IoT_t* uia_p = &rrc_instance_pP->uid_allocator; uid_allocator_NB_IoT_t* uia_p = &rrc_instance_pP->uid_allocator;
for (i=0; i < UID_LINEAR_ALLOCATOR_BITMAP_SIZE; i++) { for (i=0; i < UID_LINEAR_ALLOCATOR_BITMAP_SIZE_NB_IoT; i++) {
if (uia_p->bitmap[i] != UINT_MAX) { if (uia_p->bitmap[i] != UINT_MAX) {
bit_index = 1; bit_index = 1;
uid = 0; uid = 0;
...@@ -90,7 +90,7 @@ uid_linear_allocator_free_NB_IoT( ...@@ -90,7 +90,7 @@ uid_linear_allocator_free_NB_IoT(
unsigned int bit = uidP % (sizeof(unsigned int) * 8); unsigned int bit = uidP % (sizeof(unsigned int) * 8);
unsigned int value = ~(0x00000001 << bit); unsigned int value = ~(0x00000001 << bit);
if (i < UID_LINEAR_ALLOCATOR_BITMAP_SIZE) { if (i < UID_LINEAR_ALLOCATOR_BITMAP_SIZE_NB_IoT) {
rrc_instance_pP->uid_allocator.bitmap[i] &= value; rrc_instance_pP->uid_allocator.bitmap[i] &= value;
} }
} }
......
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