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
wangwenhui
OpenXG-RAN
Commits
5822c850
Commit
5822c850
authored
Sep 30, 2016
by
laurent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small2
parent
51c20a59
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
7 deletions
+34
-7
cmake_targets/tools/build_helper
cmake_targets/tools/build_helper
+2
-2
openair1/PHY/defs.h
openair1/PHY/defs.h
+9
-0
openair1/PHY/extern.h
openair1/PHY/extern.h
+7
-1
openair1/PHY/impl_defs_lte.h
openair1/PHY/impl_defs_lte.h
+8
-2
openair2/X2AP/x2ap_common.h
openair2/X2AP/x2ap_common.h
+2
-0
targets/RT/USER/lte-enb.c
targets/RT/USER/lte-enb.c
+6
-2
No files found.
cmake_targets/tools/build_helper
View file @
5822c850
...
...
@@ -332,7 +332,7 @@ check_install_oai_software() {
wget
$SUDO update-alternatives --set liblapack.so /usr/lib/atlas-base/atlas/liblapack.so
$SUDO apt-get install libgnutls-dev nettle-dev nettle-bin
$SUDO apt-get install
-y
libgnutls-dev nettle-dev nettle-bin
install_asn1c_from_source
}
...
...
@@ -342,7 +342,7 @@ install_asn1c_from_source(){
echo_info "\nInstalling ASN1. The log file for ASN1 installation is here: $asn1_install_log "
(
$SUDO rm -rf /tmp/asn1c
git clone https://gitlab.eurecom.fr/oai/asn1c.git /tmp/asn1c
$SUDO GIT_SSL_NO_VERIFY=true
git clone https://gitlab.eurecom.fr/oai/asn1c.git /tmp/asn1c
cd /tmp/asn1c
./configure
make -j`nproc`
...
...
openair1/PHY/defs.h
View file @
5822c850
...
...
@@ -53,6 +53,11 @@
# define msg mexPrintf
#else
# ifdef OPENAIR2
# if ENABLE_RAL
# include "collection/hashtable/hashtable.h"
# include "COMMON/ral_messages_types.h"
# include "UTIL/queue.h"
# endif
# include "log.h"
# define msg(aRGS...) LOG_D(PHY, ##aRGS)
# else
...
...
@@ -138,6 +143,9 @@ static inline void* malloc16_clear( size_t size )
#define NB_BANDS_MAX 8
#ifdef OCP_FRAMEWORK
#include <enums.h>
#else
typedef
enum
{
normal_txrx
=
0
,
rx_calib_ue
=
1
,
rx_calib_ue_med
=
2
,
rx_calib_ue_byp
=
3
,
debug_prach
=
4
,
no_L2_connect
=
5
,
calib_prach_tx
=
6
,
rx_dump_frame
=
7
,
loop_through_memory
=
8
}
runmode_t
;
enum
transmission_access_mode
{
...
...
@@ -161,6 +169,7 @@ typedef enum {
synch_to_ext_device
=
0
,
// synch to RF or Ethernet device
synch_to_other
// synch to another source (timer, other CC_id)
}
eNB_timing_t
;
#endif
typedef
struct
UE_SCAN_INFO_s
{
/// 10 best amplitudes (linear) for each pss signals
...
...
openair1/PHY/extern.h
View file @
5822c850
...
...
@@ -47,11 +47,17 @@ extern int number_of_cards;
//extern PHY_CONFIG *PHY_config;
//extern PHY_VARS *PHY_vars;
#ifndef OCP_FRAMEWORK
extern
PHY_VARS_UE
***
PHY_vars_UE_g
;
extern
PHY_VARS_eNB
***
PHY_vars_eNB_g
;
extern
PHY_VARS_RN
**
PHY_vars_RN_g
;
extern
LTE_DL_FRAME_PARMS
*
lte_frame_parms_g
;
#else
#define MAX_UE 10
#define MAX_eNB 20
extern
PHY_VARS_UE
*
PHY_vars_UE_g
[
MAX_UE
][
MAX_NUM_CCs
];
extern
PHY_VARS_eNB
*
PHY_vars_eNB_g
[
MAX_eNB
][
MAX_NUM_CCs
];
#endif
extern
MAC_xface
*
mac_xface
;
...
...
openair1/PHY/impl_defs_lte.h
View file @
5822c850
...
...
@@ -62,7 +62,9 @@
#define MAX_MBSFN_AREA 8
#ifdef OCP_FRAMEWORK
#include "enums.h"
#else
typedef
enum
{
TDD
=
1
,
FDD
=
0
}
lte_frame_type_t
;
typedef
enum
{
EXTENDED
=
1
,
NORMAL
=
0
}
lte_prefix_type_t
;
...
...
@@ -82,7 +84,7 @@ typedef enum {
one
=
6
,
two
=
12
}
PHICH_RESOURCE_t
;
#endif
/// PHICH-Config from 36.331 RRC spec
typedef
struct
{
/// Parameter: PHICH-Duration, see TS 36.211 (Table 6.9.3-1).
...
...
@@ -169,10 +171,12 @@ typedef struct {
}
UL_REFERENCE_SIGNALS_PUSCH_t
;
/// Enumeration for parameter Hopping-mode \ref PUSCH_CONFIG_COMMON::hoppingMode.
#ifndef OCP_FRAMEWORK
typedef
enum
{
interSubFrame
=
0
,
intraAndInterSubFrame
=
1
}
PUSCH_HOPPING_t
;
#endif
/// PUSCH-ConfigCommon from 36.331 RRC spec.
typedef
struct
{
...
...
@@ -337,6 +341,7 @@ typedef struct {
uint8_t
filterCoefficient
;
}
UL_POWER_CONTROL_DEDICATED
;
#ifndef OCP_FRAMEWORK
/// Enumeration for parameter \f$\alpha\f$ \ref UL_POWER_CONTROL_CONFIG_COMMON::alpha.
typedef
enum
{
al0
=
0
,
...
...
@@ -348,6 +353,7 @@ typedef enum {
al09
=
6
,
al1
=
7
}
PUSCH_alpha_t
;
#endif
/// \note UNUSED
typedef
enum
{
...
...
openair2/X2AP/x2ap_common.h
View file @
5822c850
...
...
@@ -290,8 +290,10 @@
# define X2AP_PORT 36422
#endif
#ifndef TRUE
#define TRUE 1
#define FALSE 0
#endif
extern
int
asn_debug
;
extern
int
asn1_xer_print
;
...
...
targets/RT/USER/lte-enb.c
View file @
5822c850
...
...
@@ -190,10 +190,10 @@ static inline void thread_top_init(char *thread_name,
if
(
sched_setattr
(
0
,
&
attr
,
flags
)
<
0
)
{
perror
(
"[SCHED] eNB tx thread: sched_setattr failed
\n
"
);
exit
_fun
(
"Error setting deadline scheduler"
);
exit
(
1
);
}
LOG_I
(
HW
,
"[SCHED] eNB
%s deadline thread (TID %ld) started on CPU %d
\n
"
,
gettid
(),
thread_name
,
sched_getcpu
()
);
LOG_I
(
HW
,
"[SCHED] eNB
RXn-TXnp4 deadline thread (TID %ld) started on CPU %d
\n
"
,
gettid
(),
sched_getcpu
()
);
#else //LOW_LATENCY
int
policy
,
s
,
j
;
...
...
@@ -1352,7 +1352,9 @@ void init_eNB_proc(int inst) {
for
(
CC_id
=
0
;
CC_id
<
MAX_NUM_CCs
;
CC_id
++
)
{
eNB
=
PHY_vars_eNB_g
[
inst
][
CC_id
];
#ifndef OCP_FRAMEWORK
LOG_I
(
PHY
,
"Initializing eNB %d CC_id %d (%s,%s),
\n
"
,
inst
,
CC_id
,
eNB_functions
[
eNB
->
node_function
],
eNB_timing
[
eNB
->
node_timing
]);
#endif
proc
=
&
eNB
->
proc
;
proc_rxtx
=
proc
->
proc_rxtx
;
...
...
@@ -1625,7 +1627,9 @@ void init_eNB(eNB_func_t node_function[], eNB_timing_t node_timing[],int nb_inst
eNB
->
node_timing
=
node_timing
[
CC_id
];
eNB
->
abstraction_flag
=
0
;
eNB
->
single_thread_flag
=
single_thread_flag
;
#ifndef OCP_FRAMEWORK
LOG_I
(
PHY
,
"Initializing eNB %d CC_id %d : (%s,%s)
\n
"
,
inst
,
CC_id
,
eNB_functions
[
node_function
[
CC_id
]],
eNB_timing
[
node_timing
[
CC_id
]]);
#endif
switch
(
node_function
[
CC_id
])
{
case
NGFI_RRU_IF5
:
...
...
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