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
canghaiwuhen
OpenXG-RAN
Commits
0789ee95
Commit
0789ee95
authored
Jul 12, 2016
by
Sandeep Kumar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ifdevice tx/rx buffer per cc
parent
a3c41ed7
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
47 additions
and
41 deletions
+47
-41
openair1/PHY/LTE_TRANSPORT/if4_tools.c
openair1/PHY/LTE_TRANSPORT/if4_tools.c
+16
-21
openair1/PHY/LTE_TRANSPORT/if4_tools.h
openair1/PHY/LTE_TRANSPORT/if4_tools.h
+2
-0
openair1/PHY/defs.h
openair1/PHY/defs.h
+2
-1
openair1/SCHED/phy_procedures_lte_eNb.c
openair1/SCHED/phy_procedures_lte_eNb.c
+0
-7
targets/ARCH/COMMON/common_lib.h
targets/ARCH/COMMON/common_lib.h
+8
-0
targets/ARCH/ETHERNET/USERSPACE/LIB/eth_raw.c
targets/ARCH/ETHERNET/USERSPACE/LIB/eth_raw.c
+7
-12
targets/RT/USER/lte-enb.c
targets/RT/USER/lte-enb.c
+12
-0
No files found.
openair1/PHY/LTE_TRANSPORT/if4_tools.c
View file @
0789ee95
...
@@ -49,12 +49,12 @@ void send_IF4(PHY_VARS_eNB *eNB, int frame, int subframe, uint16_t packet_type,
...
@@ -49,12 +49,12 @@ void send_IF4(PHY_VARS_eNB *eNB, int frame, int subframe, uint16_t packet_type,
int32_t
**
txdataF
=
eNB
->
common_vars
.
txdataF
[
0
];
int32_t
**
txdataF
=
eNB
->
common_vars
.
txdataF
[
0
];
int32_t
**
rxdataF
=
eNB
->
common_vars
.
rxdataF
[
0
];
int32_t
**
rxdataF
=
eNB
->
common_vars
.
rxdataF
[
0
];
int16_t
**
rxsigF
=
eNB
->
prach_vars
.
rxsigF
;
int16_t
**
rxsigF
=
eNB
->
prach_vars
.
rxsigF
;
void
*
tx_buffer
=
eNB
->
ifbuffer
.
tx
;
uint16_t
symbol_id
=
0
,
element_id
=
0
;
uint16_t
symbol_id
=
0
,
element_id
=
0
;
uint16_t
db_fulllength
,
db_halflength
;
uint16_t
db_fulllength
,
db_halflength
;
int
slotoffsetF
=
0
,
blockoffsetF
=
0
;
int
slotoffsetF
=
0
,
blockoffsetF
=
0
;
void
*
tx_buffer
=
NULL
;
uint16_t
*
data_block
=
NULL
,
*
i
=
NULL
;
uint16_t
*
data_block
=
NULL
,
*
i
=
NULL
;
if
(
packet_type
==
IF4_PDLFFT
)
{
if
(
packet_type
==
IF4_PDLFFT
)
{
...
@@ -63,7 +63,6 @@ void send_IF4(PHY_VARS_eNB *eNB, int frame, int subframe, uint16_t packet_type,
...
@@ -63,7 +63,6 @@ void send_IF4(PHY_VARS_eNB *eNB, int frame, int subframe, uint16_t packet_type,
slotoffsetF
=
(
subframe
)
*
(
fp
->
ofdm_symbol_size
)
*
((
fp
->
Ncp
==
1
)
?
12
:
14
)
+
1
;
slotoffsetF
=
(
subframe
)
*
(
fp
->
ofdm_symbol_size
)
*
((
fp
->
Ncp
==
1
)
?
12
:
14
)
+
1
;
blockoffsetF
=
slotoffsetF
+
fp
->
ofdm_symbol_size
-
db_halflength
-
1
;
blockoffsetF
=
slotoffsetF
+
fp
->
ofdm_symbol_size
-
db_halflength
-
1
;
tx_buffer
=
malloc
(
MAC_HEADER_SIZE_BYTES
+
sizeof_IF4_header_t
+
db_fulllength
*
sizeof
(
uint16_t
));
IF4_header_t
*
dl_header
=
(
IF4_header_t
*
)(
tx_buffer
+
MAC_HEADER_SIZE_BYTES
);
IF4_header_t
*
dl_header
=
(
IF4_header_t
*
)(
tx_buffer
+
MAC_HEADER_SIZE_BYTES
);
data_block
=
(
uint16_t
*
)(
tx_buffer
+
MAC_HEADER_SIZE_BYTES
+
sizeof_IF4_header_t
);
data_block
=
(
uint16_t
*
)(
tx_buffer
+
MAC_HEADER_SIZE_BYTES
+
sizeof_IF4_header_t
);
...
@@ -100,7 +99,6 @@ void send_IF4(PHY_VARS_eNB *eNB, int frame, int subframe, uint16_t packet_type,
...
@@ -100,7 +99,6 @@ void send_IF4(PHY_VARS_eNB *eNB, int frame, int subframe, uint16_t packet_type,
slotoffsetF
=
(
subframe
)
*
(
fp
->
ofdm_symbol_size
)
*
((
fp
->
Ncp
==
1
)
?
12
:
14
)
+
1
;
slotoffsetF
=
(
subframe
)
*
(
fp
->
ofdm_symbol_size
)
*
((
fp
->
Ncp
==
1
)
?
12
:
14
)
+
1
;
blockoffsetF
=
slotoffsetF
+
fp
->
ofdm_symbol_size
-
db_halflength
-
1
;
blockoffsetF
=
slotoffsetF
+
fp
->
ofdm_symbol_size
-
db_halflength
-
1
;
tx_buffer
=
malloc
(
MAC_HEADER_SIZE_BYTES
+
sizeof_IF4_header_t
+
db_fulllength
*
sizeof
(
uint16_t
));
IF4_header_t
*
ul_header
=
(
IF4_header_t
*
)(
tx_buffer
+
MAC_HEADER_SIZE_BYTES
);
IF4_header_t
*
ul_header
=
(
IF4_header_t
*
)(
tx_buffer
+
MAC_HEADER_SIZE_BYTES
);
data_block
=
(
uint16_t
*
)(
tx_buffer
+
MAC_HEADER_SIZE_BYTES
+
sizeof_IF4_header_t
);
data_block
=
(
uint16_t
*
)(
tx_buffer
+
MAC_HEADER_SIZE_BYTES
+
sizeof_IF4_header_t
);
...
@@ -135,20 +133,14 @@ void send_IF4(PHY_VARS_eNB *eNB, int frame, int subframe, uint16_t packet_type,
...
@@ -135,20 +133,14 @@ void send_IF4(PHY_VARS_eNB *eNB, int frame, int subframe, uint16_t packet_type,
// FIX: hard coded prach samples length
// FIX: hard coded prach samples length
db_fulllength
=
839
*
2
;
db_fulllength
=
839
*
2
;
tx_buffer
=
malloc
(
MAC_HEADER_SIZE_BYTES
+
sizeof_IF4_header_t
+
db_fulllength
*
sizeof
(
int16_t
));
IF4_header_t
*
prach_header
=
(
IF4_header_t
*
)(
tx_buffer
+
MAC_HEADER_SIZE_BYTES
);
IF4_header_t
*
prach_header
=
(
IF4_header_t
*
)(
tx_buffer
+
MAC_HEADER_SIZE_BYTES
);
data_block
=
(
uint16_t
*
)(
tx_buffer
+
MAC_HEADER_SIZE_BYTES
+
sizeof_IF4_header_t
);
data_block
=
(
uint16_t
*
)(
tx_buffer
+
MAC_HEADER_SIZE_BYTES
+
sizeof_IF4_header_t
);
gen_IF4_prach_header
(
prach_header
,
frame
,
subframe
);
gen_IF4_prach_header
(
prach_header
,
frame
,
subframe
);
// Generate uncompressed data blocks
memcpy
((
int16_t
*
)(
tx_buffer
+
MAC_HEADER_SIZE_BYTES
+
sizeof_IF4_header_t
),
memcpy
(
data_block
,
(
rxsigF
[
0
]
+
k
),
db_fulllength
*
sizeof
(
int16_t
));
(
&
rxsigF
[
0
][
0
]
+
k
),
db_fulllength
*
sizeof
(
int16_t
));
//for (element_id=0; element_id<db_fulllength; element_id++) {
// data_block[element_id] = rxsigF[0][prachoffsetF];
// data_block[element_id] |= rxsigF[0][prachoffsetF+1]<<16;
// prachoffsetF += 2;
//}
if
((
eNB
->
ifdevice
.
trx_write_func
(
&
eNB
->
ifdevice
,
if
((
eNB
->
ifdevice
.
trx_write_func
(
&
eNB
->
ifdevice
,
symbol_id
,
symbol_id
,
...
@@ -162,7 +154,6 @@ void send_IF4(PHY_VARS_eNB *eNB, int frame, int subframe, uint16_t packet_type,
...
@@ -162,7 +154,6 @@ void send_IF4(PHY_VARS_eNB *eNB, int frame, int subframe, uint16_t packet_type,
AssertFatal
(
1
==
0
,
"send_IF4 - Unknown packet_type %x"
,
packet_type
);
AssertFatal
(
1
==
0
,
"send_IF4 - Unknown packet_type %x"
,
packet_type
);
}
}
free
(
tx_buffer
);
return
;
return
;
}
}
...
@@ -172,6 +163,7 @@ void recv_IF4(PHY_VARS_eNB *eNB, int *frame, int *subframe, uint16_t *packet_typ
...
@@ -172,6 +163,7 @@ void recv_IF4(PHY_VARS_eNB *eNB, int *frame, int *subframe, uint16_t *packet_typ
int32_t
**
txdataF
=
eNB
->
common_vars
.
txdataF
[
0
];
int32_t
**
txdataF
=
eNB
->
common_vars
.
txdataF
[
0
];
int32_t
**
rxdataF
=
eNB
->
common_vars
.
rxdataF
[
0
];
int32_t
**
rxdataF
=
eNB
->
common_vars
.
rxdataF
[
0
];
int16_t
**
rxsigF
=
eNB
->
prach_vars
.
rxsigF
;
int16_t
**
rxsigF
=
eNB
->
prach_vars
.
rxsigF
;
void
*
rx_buffer
=
eNB
->
ifbuffer
.
rx
;
uint16_t
element_id
;
uint16_t
element_id
;
uint16_t
db_fulllength
,
db_halflength
;
uint16_t
db_fulllength
,
db_halflength
;
...
@@ -184,7 +176,6 @@ void recv_IF4(PHY_VARS_eNB *eNB, int *frame, int *subframe, uint16_t *packet_typ
...
@@ -184,7 +176,6 @@ void recv_IF4(PHY_VARS_eNB *eNB, int *frame, int *subframe, uint16_t *packet_typ
}
}
db_halflength
=
db_fulllength
>>
1
;
db_halflength
=
db_fulllength
>>
1
;
void
*
rx_buffer
=
NULL
;
IF4_header_t
*
packet_header
=
NULL
;
IF4_header_t
*
packet_header
=
NULL
;
uint16_t
*
data_block
=
NULL
,
*
i
=
NULL
;
uint16_t
*
data_block
=
NULL
,
*
i
=
NULL
;
...
@@ -238,14 +229,14 @@ void recv_IF4(PHY_VARS_eNB *eNB, int *frame, int *subframe, uint16_t *packet_typ
...
@@ -238,14 +229,14 @@ void recv_IF4(PHY_VARS_eNB *eNB, int *frame, int *subframe, uint16_t *packet_typ
// FIX: hard coded prach samples length
// FIX: hard coded prach samples length
db_fulllength
=
839
*
2
;
db_fulllength
=
839
*
2
;
// Generate uncompressed data blocks
memcpy
((
&
rxsigF
[
0
][
0
]),
memcpy
((
rxsigF
[
0
]
+
slotoffsetF
),
data_block
,
db_fulllength
*
sizeof
(
int16_t
));
(
int16_t
*
)
(
rx_buffer
+
MAC_HEADER_SIZE_BYTES
+
sizeof_IF4_header_t
),
db_fulllength
*
sizeof
(
int16_t
));
}
else
{
}
else
{
AssertFatal
(
1
==
0
,
"recv_IF4 - Unknown packet_type %x"
,
*
packet_type
);
AssertFatal
(
1
==
0
,
"recv_IF4 - Unknown packet_type %x"
,
*
packet_type
);
}
}
free
(
rx_buffer
);
return
;
return
;
}
}
...
@@ -260,7 +251,6 @@ void gen_IF4_dl_header(IF4_header_t *dl_packet, int frame, int subframe) {
...
@@ -260,7 +251,6 @@ void gen_IF4_dl_header(IF4_header_t *dl_packet, int frame, int subframe) {
dl_packet
->
frame_status
=
0
;
dl_packet
->
frame_status
=
0
;
dl_packet
->
frame_status
|=
(
frame
&
0xffff
)
<<
6
;
dl_packet
->
frame_status
|=
(
frame
&
0xffff
)
<<
6
;
dl_packet
->
frame_status
|=
(
subframe
&
0x000f
)
<<
22
;
dl_packet
->
frame_status
|=
(
subframe
&
0x000f
)
<<
22
;
}
}
...
@@ -274,7 +264,6 @@ void gen_IF4_ul_header(IF4_header_t *ul_packet, int frame, int subframe) {
...
@@ -274,7 +264,6 @@ void gen_IF4_ul_header(IF4_header_t *ul_packet, int frame, int subframe) {
ul_packet
->
frame_status
=
0
;
ul_packet
->
frame_status
=
0
;
ul_packet
->
frame_status
|=
(
frame
&
0xffff
)
<<
6
;
ul_packet
->
frame_status
|=
(
frame
&
0xffff
)
<<
6
;
ul_packet
->
frame_status
|=
(
subframe
&
0x000f
)
<<
22
;
ul_packet
->
frame_status
|=
(
subframe
&
0x000f
)
<<
22
;
}
}
...
@@ -288,5 +277,11 @@ void gen_IF4_prach_header(IF4_header_t *prach_packet, int frame, int subframe) {
...
@@ -288,5 +277,11 @@ void gen_IF4_prach_header(IF4_header_t *prach_packet, int frame, int subframe) {
prach_packet
->
frame_status
=
0
;
prach_packet
->
frame_status
=
0
;
prach_packet
->
frame_status
|=
(
frame
&
0xffff
)
<<
6
;
prach_packet
->
frame_status
|=
(
frame
&
0xffff
)
<<
6
;
prach_packet
->
frame_status
|=
(
subframe
&
0x000f
)
<<
22
;
prach_packet
->
frame_status
|=
(
subframe
&
0x000f
)
<<
22
;
}
void
malloc_IF4_buffer
(
PHY_VARS_eNB
*
eNB
)
{
// Keep the size large enough
eNB
->
ifbuffer
.
tx
=
malloc
(
RAW_IF4_PRACH_SIZE_BYTES
);
eNB
->
ifbuffer
.
rx
=
malloc
(
RAW_IF4_PRACH_SIZE_BYTES
);
}
}
openair1/PHY/LTE_TRANSPORT/if4_tools.h
View file @
0789ee95
...
@@ -70,3 +70,5 @@ void gen_IF4_prach_header(IF4_header_t*, int, int);
...
@@ -70,3 +70,5 @@ void gen_IF4_prach_header(IF4_header_t*, int, int);
void
send_IF4
(
PHY_VARS_eNB
*
,
int
,
int
,
uint16_t
,
int
);
void
send_IF4
(
PHY_VARS_eNB
*
,
int
,
int
,
uint16_t
,
int
);
void
recv_IF4
(
PHY_VARS_eNB
*
,
int
*
,
int
*
,
uint16_t
*
,
uint32_t
*
);
void
recv_IF4
(
PHY_VARS_eNB
*
,
int
*
,
int
*
,
uint16_t
*
,
uint32_t
*
);
void
malloc_IF4_buffer
(
PHY_VARS_eNB
*
);
openair1/PHY/defs.h
View file @
0789ee95
...
@@ -514,7 +514,8 @@ typedef struct PHY_VARS_eNB_s {
...
@@ -514,7 +514,8 @@ typedef struct PHY_VARS_eNB_s {
/// RF and Interface devices per CC
/// RF and Interface devices per CC
openair0_device
rfdevice
;
openair0_device
rfdevice
;
openair0_device
ifdevice
;
openair0_device
ifdevice
;
// *** Handle spatially distributed MIMO antenna ports
/// Pointer for ifdevice buffer struct
if_buffer_t
ifbuffer
;
}
PHY_VARS_eNB
;
}
PHY_VARS_eNB
;
...
...
openair1/SCHED/phy_procedures_lte_eNb.c
View file @
0789ee95
...
@@ -2528,10 +2528,6 @@ void phy_procedures_eNB_common_RX(PHY_VARS_eNB *eNB,const uint8_t abstraction_fl
...
@@ -2528,10 +2528,6 @@ void phy_procedures_eNB_common_RX(PHY_VARS_eNB *eNB,const uint8_t abstraction_fl
uint32_t
symbol_number
=
0
;
uint32_t
symbol_number
=
0
;
uint32_t
symbol_mask
,
symbol_mask_full
;
uint32_t
symbol_mask
,
symbol_mask_full
;
struct
timespec
time_req
,
time_rem
;
time_req
.
tv_sec
=
0
;
time_req
.
tv_nsec
=
900000
;
if
(
subframe
==
9
)
{
if
(
subframe
==
9
)
{
subframe
=
0
;
subframe
=
0
;
frame
++
;
frame
++
;
...
@@ -2595,9 +2591,6 @@ void phy_procedures_eNB_common_RX(PHY_VARS_eNB *eNB,const uint8_t abstraction_fl
...
@@ -2595,9 +2591,6 @@ void phy_procedures_eNB_common_RX(PHY_VARS_eNB *eNB,const uint8_t abstraction_fl
recv_IF5
(
eNB
,
&
proc
->
timestamp_rx
,
proc
->
subframe_rx
,
IF5_RRH_GW_UL
);
recv_IF5
(
eNB
,
&
proc
->
timestamp_rx
,
proc
->
subframe_rx
,
IF5_RRH_GW_UL
);
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_RECV_IF5
,
0
);
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_RECV_IF5
,
0
);
//nanosleep(&time_req, &time_rem);
//proc->timestamp_rx += fp->samples_per_tti;
proc
->
frame_rx
=
(
proc
->
timestamp_rx
/
(
fp
->
samples_per_tti
*
10
))
&
1023
;
proc
->
frame_rx
=
(
proc
->
timestamp_rx
/
(
fp
->
samples_per_tti
*
10
))
&
1023
;
proc
->
subframe_rx
=
(
proc
->
timestamp_rx
/
fp
->
samples_per_tti
)
%
10
;
proc
->
subframe_rx
=
(
proc
->
timestamp_rx
/
fp
->
samples_per_tti
)
%
10
;
...
...
targets/ARCH/COMMON/common_lib.h
View file @
0789ee95
...
@@ -236,6 +236,14 @@ typedef struct {
...
@@ -236,6 +236,14 @@ typedef struct {
}
eth_params_t
;
}
eth_params_t
;
typedef
struct
{
//! Tx buffer for if device
void
*
tx
;
//! Rx buffer for if device
void
*
rx
;
}
if_buffer_t
;
/*!\brief structure holds the parameters to configure USRP devices */
/*!\brief structure holds the parameters to configure USRP devices */
struct
openair0_device_t
{
struct
openair0_device_t
{
/*!brief Module ID of this device */
/*!brief Module ID of this device */
...
...
targets/ARCH/ETHERNET/USERSPACE/LIB/eth_raw.c
View file @
0789ee95
...
@@ -313,12 +313,10 @@ int trx_eth_read_raw_IF4(openair0_device *device, openair0_timestamp *timestamp,
...
@@ -313,12 +313,10 @@ int trx_eth_read_raw_IF4(openair0_device *device, openair0_timestamp *timestamp,
int
Mod_id
=
device
->
Mod_id
;
int
Mod_id
=
device
->
Mod_id
;
ssize_t
packet_size
=
MAC_HEADER_SIZE_BYTES
+
sizeof_IF4_header_t
;
ssize_t
packet_size
=
MAC_HEADER_SIZE_BYTES
+
sizeof_IF4_header_t
;
void
*
test_buffer
=
(
void
*
)
malloc
(
packet_size
);
IF4_header_t
*
test_header
=
(
IF4_header_t
*
)(
buff
[
0
]
+
MAC_HEADER_SIZE_BYTES
);
IF4_header_t
*
test_header
=
(
IF4_header_t
*
)(
test_buffer
+
MAC_HEADER_SIZE_BYTES
);
bytes_received
=
recv
(
eth
->
sockfd
[
Mod_id
],
bytes_received
=
recv
(
eth
->
sockfd
[
Mod_id
],
test_buffer
,
buff
[
0
]
,
packet_size
,
packet_size
,
MSG_PEEK
);
MSG_PEEK
);
if
(
bytes_received
==-
1
)
{
if
(
bytes_received
==-
1
)
{
...
@@ -337,10 +335,6 @@ int trx_eth_read_raw_IF4(openair0_device *device, openair0_timestamp *timestamp,
...
@@ -337,10 +335,6 @@ int trx_eth_read_raw_IF4(openair0_device *device, openair0_timestamp *timestamp,
packet_size
=
RAW_IF4_PRACH_SIZE_BYTES
;
packet_size
=
RAW_IF4_PRACH_SIZE_BYTES
;
}
}
buff
[
0
]
=
(
void
*
)
malloc
(
packet_size
);
bytes_received
=
0
;
while
(
bytes_received
<
packet_size
)
{
while
(
bytes_received
<
packet_size
)
{
bytes_received
=
recv
(
eth
->
sockfd
[
Mod_id
],
bytes_received
=
recv
(
eth
->
sockfd
[
Mod_id
],
buff
[
0
],
buff
[
0
],
...
@@ -357,7 +351,6 @@ int trx_eth_read_raw_IF4(openair0_device *device, openair0_timestamp *timestamp,
...
@@ -357,7 +351,6 @@ int trx_eth_read_raw_IF4(openair0_device *device, openair0_timestamp *timestamp,
}
}
eth
->
rx_nsamps
=
nsamps
;
eth
->
rx_nsamps
=
nsamps
;
free
(
test_buffer
);
return
(
bytes_received
);
return
(
bytes_received
);
}
}
...
@@ -395,6 +388,7 @@ int eth_set_dev_conf_raw(openair0_device *device) {
...
@@ -395,6 +388,7 @@ int eth_set_dev_conf_raw(openair0_device *device) {
int
eth_set_dev_conf_raw_IF4
(
openair0_device
*
device
)
{
int
eth_set_dev_conf_raw_IF4
(
openair0_device
*
device
)
{
// use for cc_id info
int
Mod_id
=
device
->
Mod_id
;
int
Mod_id
=
device
->
Mod_id
;
eth_state_t
*
eth
=
(
eth_state_t
*
)
device
->
priv
;
eth_state_t
*
eth
=
(
eth_state_t
*
)
device
->
priv
;
...
@@ -455,6 +449,7 @@ int eth_get_dev_conf_raw(openair0_device *device) {
...
@@ -455,6 +449,7 @@ int eth_get_dev_conf_raw(openair0_device *device) {
int
eth_get_dev_conf_raw_IF4
(
openair0_device
*
device
)
{
int
eth_get_dev_conf_raw_IF4
(
openair0_device
*
device
)
{
// use for cc_id info
eth_state_t
*
eth
=
(
eth_state_t
*
)
device
->
priv
;
eth_state_t
*
eth
=
(
eth_state_t
*
)
device
->
priv
;
int
Mod_id
=
device
->
Mod_id
;
int
Mod_id
=
device
->
Mod_id
;
...
...
targets/RT/USER/lte-enb.c
View file @
0789ee95
...
@@ -768,6 +768,18 @@ static void* eNB_thread_rx_common( void* param ) {
...
@@ -768,6 +768,18 @@ static void* eNB_thread_rx_common( void* param ) {
wait_system_ready
(
"Waiting for eNB application to be ready %s
\r
"
,
&
start_eNB
);
wait_system_ready
(
"Waiting for eNB application to be ready %s
\r
"
,
&
start_eNB
);
#endif
#endif
// Create buffer for IF device and free when stopping
if
(
eNB
->
node_function
==
NGFI_RCC_IF4
||
eNB
->
node_function
==
NGFI_RRU_IF4
)
{
malloc_IF4_buffer
(
eNB
);
}
else
if
(
eNB
->
node_function
==
NGFI_RRU_IF5
||
eNB
->
node_function
==
eNodeB_3GPP_BBU
)
{
//malloc_IF5_buffer(eNB);
}
else
{
eNB
->
ifbuffer
.
tx
=
NULL
;
eNB
->
ifbuffer
.
rx
=
NULL
;
}
// Start IF device for this CC
// Start IF device for this CC
if
(
eNB
->
node_function
!=
eNodeB_3GPP
)
{
if
(
eNB
->
node_function
!=
eNodeB_3GPP
)
{
if
(
eNB
->
ifdevice
.
trx_start_func
(
&
eNB
->
ifdevice
)
!=
0
)
if
(
eNB
->
ifdevice
.
trx_start_func
(
&
eNB
->
ifdevice
)
!=
0
)
...
...
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