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
wangjie
OpenXG-RAN
Commits
777b1485
Commit
777b1485
authored
Jul 15, 2014
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5504
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
1a044242
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
1 deletion
+36
-1
targets/RT/USER/lte-softmodem.c
targets/RT/USER/lte-softmodem.c
+36
-1
No files found.
targets/RT/USER/lte-softmodem.c
View file @
777b1485
...
...
@@ -137,7 +137,8 @@ int32_t init_rx_pdsch_thread(void);
void
cleanup_rx_pdsch_thread
(
void
);
s32
*
rxdata
;
s32
*
txdata
;
void
setup_ue_buffers
(
PHY_VARS_UE
*
phy_vars_ue
,
LTE_DL_FRAME_PARMS
*
frame_parms
,
int
carrier
);
void
setup_eNB_buffers
(
PHY_VARS_eNB
*
phy_vars_eNB
,
LTE_DL_FRAME_PARMS
*
frame_parms
,
int
carrier
);
...
...
@@ -1042,6 +1043,10 @@ static void *eNB_thread(void *arg)
int
sf
;
#ifndef USRP
volatile
unsigned
int
*
DAQ_MBOX
=
openair0_daq_cnt
();
#else
int
rx_cnt
=
0
;
int
tx_cnt
=
tx_delay
;
hw_subframe
=
0
;
#endif
#if defined(ENABLE_ITTI)
/* Wait for eNB application initialization to be complete (eNB registration to MME) */
...
...
@@ -2361,6 +2366,10 @@ void setup_ue_buffers(PHY_VARS_UE *phy_vars_ue, LTE_DL_FRAME_PARMS *frame_parms,
void
setup_eNB_buffers
(
PHY_VARS_eNB
*
phy_vars_eNB
,
LTE_DL_FRAME_PARMS
*
frame_parms
,
int
carrier
)
{
int
i
,
j
;
#ifdef USRP
uint16_t
N_TA_offset
=
0
;
#endif
if
(
phy_vars_eNB
)
{
if
((
frame_parms
->
nb_antennas_rx
>
1
)
&&
(
carrier
>
0
))
{
...
...
@@ -2372,8 +2381,18 @@ void setup_eNB_buffers(PHY_VARS_eNB *phy_vars_eNB, LTE_DL_FRAME_PARMS *frame_par
printf
(
"TX antennas > 1 and carrier > 0 not possible
\n
"
);
exit
(
-
1
);
}
if
(
frame_parms
->
frame_type
==
TDD
)
{
if
(
phy_vars_eNB
->
lte_frame_parms
.
N_RB_DL
==
100
)
N_TA_offset
=
624
;
else
if
(
phy_vars_eNB
->
lte_frame_parms
.
N_RB_DL
==
50
)
N_TA_offset
=
624
/
2
;
else
if
(
phy_vars_eNB
->
lte_frame_parms
.
N_RB_DL
==
25
)
N_TA_offset
=
624
/
4
;
}
// replace RX signal buffers with mmaped HW versions
#ifndef USRP
for
(
i
=
0
;
i
<
frame_parms
->
nb_antennas_rx
;
i
++
)
{
free
(
phy_vars_eNB
->
lte_eNB_common_vars
.
rxdata
[
0
][
i
]);
phy_vars_eNB
->
lte_eNB_common_vars
.
rxdata
[
0
][
i
]
=
(
int32_t
*
)
openair0_exmimo_pci
[
card
].
adc_head
[
i
+
carrier
];
...
...
@@ -2394,5 +2413,21 @@ void setup_eNB_buffers(PHY_VARS_eNB *phy_vars_eNB, LTE_DL_FRAME_PARMS *frame_par
phy_vars_eNB
->
lte_eNB_common_vars
.
txdata
[
0
][
i
][
j
]
=
16
-
j
;
}
}
#else // USRP
for
(
i
=
0
;
i
<
frame_parms
->
nb_antennas_rx
;
i
++
)
{
free
(
phy_vars_eNB
->
lte_eNB_common_vars
.
rxdata
[
0
][
i
]);
rxdata
=
(
s32
*
)
malloc16
(
samples_per_frame
*
sizeof
(
s32
));
phy_vars_eNB
->
lte_eNB_common_vars
.
rxdata
[
0
][
i
]
=
rxdata
-
N_TA_offset
;
// N_TA offset for TDD
memset
(
rxdata
,
0
,
samples_per_frame
*
sizeof
(
s32
));
printf
(
"rxdata[%d] @ %p
\n
"
,
i
,
phy_vars_eNB
->
lte_eNB_common_vars
.
rxdata
[
0
][
i
]);
}
for
(
i
=
0
;
i
<
frame_parms
->
nb_antennas_tx
;
i
++
)
{
free
(
phy_vars_eNB
->
lte_eNB_common_vars
.
txdata
[
0
][
i
]);
txdata
=
(
s32
*
)
malloc16
(
samples_per_frame
*
sizeof
(
s32
));
phy_vars_eNB
->
lte_eNB_common_vars
.
txdata
[
0
][
i
]
=
txdata
;
memset
(
txdata
,
0
,
samples_per_frame
*
sizeof
(
s32
));
printf
(
"txdata[%d] @ %p
\n
"
,
i
,
phy_vars_eNB
->
lte_eNB_common_vars
.
txdata
[
0
][
i
]);
}
#endif
}
}
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