diff --git a/cmake_targets/CMakeLists.txt b/cmake_targets/CMakeLists.txt index 44020698a4..cb28fc869d 100644 --- a/cmake_targets/CMakeLists.txt +++ b/cmake_targets/CMakeLists.txt @@ -1039,6 +1039,10 @@ add_boolean_option(DEBUG_PHY_PROC False "Enable debugging of PHY layer add_boolean_option(DEBUG_DLSCH False "Enable debugging of DLSCH physical layer channel") add_boolean_option(MEX False "Enabling compilation with mex") +if (${RU} STREQUAL 0) +add_boolean_option(HAVE_RRC True "Enable RRC includes") +endif (${RU} STREQUAL 0) + ########################## # NAS LAYER OPTIONS ########################## diff --git a/openair1/PHY/LTE_ESTIMATION/lte_sync_time.c b/openair1/PHY/LTE_ESTIMATION/lte_sync_time.c index b3b8bc9bef..614927a455 100644 --- a/openair1/PHY/LTE_ESTIMATION/lte_sync_time.c +++ b/openair1/PHY/LTE_ESTIMATION/lte_sync_time.c @@ -29,7 +29,6 @@ #include #include "PHY/defs_UE.h" #include "PHY/phy_extern_ue.h" -#include "PHY_INTERFACE/phy_interface.h" #include "PHY/LTE_REFSIG/lte_refsig.h" // Note: this is for prototype of generate_drs_pusch (OTA synchronization of RRUs) diff --git a/openair1/PHY/LTE_TRANSPORT/dci_tools_common.c b/openair1/PHY/LTE_TRANSPORT/dci_tools_common.c index d9533072f8..64e74ebfbf 100644 --- a/openair1/PHY/LTE_TRANSPORT/dci_tools_common.c +++ b/openair1/PHY/LTE_TRANSPORT/dci_tools_common.c @@ -32,7 +32,6 @@ #include "PHY/defs_eNB.h" #include "PHY/phy_extern.h" -#include "SCHED/sched_eNB.h" #ifdef DEBUG_DCI_TOOLS #include "PHY/phy_vars.h" #endif @@ -43,7 +42,6 @@ //#define DEBUG_HARQ -#include "LAYER2/MAC/mac.h" //#define DEBUG_DCI diff --git a/openair1/PHY/LTE_TRANSPORT/pucch_common.c b/openair1/PHY/LTE_TRANSPORT/pucch_common.c index 5b939b08d2..d7a500d5f7 100644 --- a/openair1/PHY/LTE_TRANSPORT/pucch_common.c +++ b/openair1/PHY/LTE_TRANSPORT/pucch_common.c @@ -31,7 +31,6 @@ */ #include "PHY/defs_eNB.h" #include "PHY/phy_extern.h" -#include "LAYER2/MAC/mac.h" #include "common/utils/LOG/vcd_signal_dumper.h" #include "common/utils/LOG/log.h" diff --git a/openair1/PHY/defs_eNB.h b/openair1/PHY/defs_eNB.h index a3c45256e8..030d50bc04 100644 --- a/openair1/PHY/defs_eNB.h +++ b/openair1/PHY/defs_eNB.h @@ -65,6 +65,7 @@ #include "platform_types.h" #include "PHY/LTE_TRANSPORT/transport_common.h" #include "PHY/LTE_TRANSPORT/transport_eNB.h" +#include "openair2/PHY_INTERFACE/IF_Module.h" #include "openairinterface5g_limits.h" diff --git a/openair1/PHY/defs_gNB.h b/openair1/PHY/defs_gNB.h index 63c0583bc8..b7923adb0b 100644 --- a/openair1/PHY/defs_gNB.h +++ b/openair1/PHY/defs_gNB.h @@ -36,6 +36,7 @@ #include "defs_eNB.h" #include "defs_nr_common.h" #include "CODING/nrPolar_tools/nr_polar_pbch_defs.h" +#include "openair2/NR_PHY_INTERFACE/NR_IF_Module.h" #include "PHY/NR_TRANSPORT/nr_transport_common_proto.h" #include "PHY/impl_defs_top.h" #include "PHY/defs_common.h" diff --git a/openair1/SCHED/prach_procedures.c b/openair1/SCHED/prach_procedures.c index 593cfcb1dc..4d0fe428e8 100644 --- a/openair1/SCHED/prach_procedures.c +++ b/openair1/SCHED/prach_procedures.c @@ -31,7 +31,6 @@ */ #include "PHY/defs_eNB.h" -#include "SCHED/sched_eNB.h" #include "nfapi_interface.h" #include "fapi_l1.h" #include "nfapi_pnf.h" diff --git a/openair2/COMMON/platform_constants.h b/openair2/COMMON/platform_constants.h index ba406dd736..41a5879522 100644 --- a/openair2/COMMON/platform_constants.h +++ b/openair2/COMMON/platform_constants.h @@ -28,12 +28,19 @@ ***************************************************************************/ -#include "LTE_asn_constant.h" -#include "NR_asn_constant.h" #ifndef __PLATFORM_CONSTANTS_H__ # define __PLATFORM_CONSTANTS_H__ +#ifdef HAVE_RRC +#include "LTE_asn_constant.h" +#include "NR_asn_constant.h" +#else +#define LTE_maxDRB 14 +#define LTE_maxDRB_NB_r13 5 +#define NR_MAXDRB 14 +#endif + #ifdef JUMBO_FRAME #define NL_MAX_PAYLOAD 18000 /* this should cover the max mtu size*/ #else