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
Michael Black
OpenXG-RAN
Commits
a7e14c34
Commit
a7e14c34
authored
Apr 17, 2014
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5261
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
6904a70f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
34 deletions
+34
-34
targets/RTAI/USER/lte-enb.c
targets/RTAI/USER/lte-enb.c
+34
-34
No files found.
targets/RTAI/USER/lte-enb.c
View file @
a7e14c34
...
@@ -162,11 +162,11 @@ int oai_flag = 0;
...
@@ -162,11 +162,11 @@ int oai_flag = 0;
//int time_offset[4] = {-145,-145,-145,-145};
//int time_offset[4] = {-145,-145,-145,-145};
int
time_offset
[
4
]
=
{
0
,
0
,
0
,
0
};
int
time_offset
[
4
]
=
{
0
,
0
,
0
,
0
};
u
8
eNB_id
=
0
;
u
int8_t
eNB_id
=
0
;
u
32
carrier_freq_fdd
[
4
]
=
{
2680e6
,
0
,
0
,
0
};
u
int32_t
carrier_freq_fdd
[
4
]
=
{
2680e6
,
0
,
0
,
0
};
u
32
carrier_freq_tdd
[
4
]
=
{
2590e6
-
4000
,
0
,
0
,
0
};
u
int32_t
carrier_freq_tdd
[
4
]
=
{
2590e6
-
4000
,
0
,
0
,
0
};
u
32
carrier_freq
[
4
];
u
int32_t
carrier_freq
[
4
];
static
char
*
conf_config_file_name
=
NULL
;
static
char
*
conf_config_file_name
=
NULL
;
struct
timing_info_t
{
struct
timing_info_t
{
...
@@ -192,7 +192,7 @@ int mbox_bounds[10] = {14, 28, 44, 58, 74, 88, 104, 118, 134, 148}; // mbox boun
...
@@ -192,7 +192,7 @@ int mbox_bounds[10] = {14, 28, 44, 58, 74, 88, 104, 118, 134, 148}; // mbox boun
int
init_dlsch_threads
(
void
);
int
init_dlsch_threads
(
void
);
void
cleanup_dlsch_threads
(
void
);
void
cleanup_dlsch_threads
(
void
);
s32
init_rx_pdsch_thread
(
void
);
int32_t
init_rx_pdsch_thread
(
void
);
void
cleanup_rx_pdsch_thread
(
void
);
void
cleanup_rx_pdsch_thread
(
void
);
int
init_ulsch_threads
(
void
);
int
init_ulsch_threads
(
void
);
void
cleanup_ulsch_threads
(
void
);
void
cleanup_ulsch_threads
(
void
);
...
@@ -274,7 +274,7 @@ void *scope_thread(void *arg)
...
@@ -274,7 +274,7 @@ void *scope_thread(void *arg)
}
}
#endif
#endif
void
do_OFDM_mod
(
mod_sym_t
**
txdataF
,
s32
**
txdata
,
u16
next_slot
,
void
do_OFDM_mod
(
mod_sym_t
**
txdataF
,
int32_t
**
txdata
,
uint16_t
next_slot
,
LTE_DL_FRAME_PARMS
*
frame_parms
)
LTE_DL_FRAME_PARMS
*
frame_parms
)
{
{
int
aa
,
slot_offset
,
slot_offset_F
;
int
aa
,
slot_offset
,
slot_offset_F
;
...
@@ -645,43 +645,43 @@ int main(int argc, char **argv)
...
@@ -645,43 +645,43 @@ int main(int argc, char **argv)
void
*
status
;
void
*
status
;
/*
/*
u
32
rf_mode_max[4] = {55759,55759,55759,55759};
u
int32_t
rf_mode_max[4] = {55759,55759,55759,55759};
u
32
rf_mode_med[4] = {39375,39375,39375,39375};
u
int32_t
rf_mode_med[4] = {39375,39375,39375,39375};
u
32
rf_mode_byp[4] = {22991,22991,22991,22991};
u
int32_t
rf_mode_byp[4] = {22991,22991,22991,22991};
*/
*/
u
32
my_rf_mode
=
RXEN
+
TXEN
+
TXLPFNORM
+
TXLPFEN
+
TXLPF25
+
RXLPFNORM
+
u
int32_t
my_rf_mode
=
RXEN
+
TXEN
+
TXLPFNORM
+
TXLPFEN
+
TXLPF25
+
RXLPFNORM
+
RXLPFEN
+
RXLPF25
+
LNA1ON
+
LNAMax
+
RFBBNORM
+
DMAMODE_RX
+
DMAMODE_TX
;
RXLPFEN
+
RXLPF25
+
LNA1ON
+
LNAMax
+
RFBBNORM
+
DMAMODE_RX
+
DMAMODE_TX
;
u
32
rf_mode_base
=
TXLPFNORM
+
TXLPFEN
+
TXLPF25
+
RXLPFNORM
+
RXLPFEN
+
u
int32_t
rf_mode_base
=
TXLPFNORM
+
TXLPFEN
+
TXLPF25
+
RXLPFNORM
+
RXLPFEN
+
RXLPF25
+
LNA1ON
+
/*LNAMax Antennas*/
LNAByp
+
RFBBNORM
;
RXLPF25
+
LNA1ON
+
/*LNAMax Antennas*/
LNAByp
+
RFBBNORM
;
u
32
rf_mode
[
4
]
=
{
my_rf_mode
,
0
,
0
,
0
};
u
int32_t
rf_mode
[
4
]
=
{
my_rf_mode
,
0
,
0
,
0
};
u
32
rf_local
[
4
]
=
{
8255000
,
8255000
,
8255000
,
8255000
};
// UE zepto
u
int32_t
rf_local
[
4
]
=
{
8255000
,
8255000
,
8255000
,
8255000
};
// UE zepto
//{8254617, 8254617, 8254617, 8254617}; //eNB khalifa
//{8254617, 8254617, 8254617, 8254617}; //eNB khalifa
//{8255067,8254810,8257340,8257340}; // eNB PETRONAS
//{8255067,8254810,8257340,8257340}; // eNB PETRONAS
u
32
rf_vcocal
[
4
]
=
{
910
,
910
,
910
,
910
};
u
int32_t
rf_vcocal
[
4
]
=
{
910
,
910
,
910
,
910
};
u
32
rf_vcocal_850
[
4
]
=
{
2015
,
2015
,
2015
,
2015
};
u
int32_t
rf_vcocal_850
[
4
]
=
{
2015
,
2015
,
2015
,
2015
};
u
32
rf_rxdc
[
4
]
=
{
32896
,
32896
,
32896
,
32896
};
u
int32_t
rf_rxdc
[
4
]
=
{
32896
,
32896
,
32896
,
32896
};
// Gain for antennas connection
// Gain for antennas connection
//u
32
rxgain[4] = {25,20,20,20};
//u
int32_t
rxgain[4] = {25,20,20,20};
//u
32
txgain[4] = {30,25,25,25};
//u
int32_t
txgain[4] = {30,25,25,25};
// Gain for Cable connection
// Gain for Cable connection
u
32
rxgain
[
4
]
=
{
20
,
20
,
20
,
20
};
u
int32_t
rxgain
[
4
]
=
{
20
,
20
,
20
,
20
};
u
32
txgain
[
4
]
=
{
25
,
25
,
25
,
25
};
u
int32_t
txgain
[
4
]
=
{
25
,
25
,
25
,
25
};
u
8
frame_type
=
FDD
;
u
int8_t
frame_type
=
FDD
;
u
8
tdd_config
=
3
;
u
int8_t
tdd_config
=
3
;
u
8
tdd_config_S
=
0
;
u
int8_t
tdd_config_S
=
0
;
u
8
extended_prefix_flag
=
0
;
u
int8_t
extended_prefix_flag
=
0
;
u
16
Nid_cell
=
0
;
u
int16_t
Nid_cell
=
0
;
u
8
N_RB_DL
=
25
;
u
int8_t
N_RB_DL
=
25
;
u
8
cooperation_flag
=
0
;
u
int8_t
cooperation_flag
=
0
;
u
8
transmission_mode
=
1
;
u
int8_t
transmission_mode
=
1
;
u
8
abstraction_flag
=
0
;
u
int8_t
abstraction_flag
=
0
;
u
8
nb_antennas_rx
=
1
;
u
int8_t
nb_antennas_rx
=
1
;
u
8
beta_ACK
=
0
,
beta_RI
=
0
,
beta_CQI
=
2
;
u
int8_t
beta_ACK
=
0
,
beta_RI
=
0
,
beta_CQI
=
2
;
int
c
;
int
c
;
char
do_forms
=
0
;
char
do_forms
=
0
;
...
@@ -1167,7 +1167,7 @@ void setup_eNB_buffers(PHY_VARS_eNB *phy_vars_eNB,
...
@@ -1167,7 +1167,7 @@ void setup_eNB_buffers(PHY_VARS_eNB *phy_vars_eNB,
{
{
int
i
,
j
;
int
i
,
j
;
u
16
N_TA_offset
=
0
;
u
int16_t
N_TA_offset
=
0
;
if
(
frame_parms
->
frame_type
==
TDD
)
{
if
(
frame_parms
->
frame_type
==
TDD
)
{
N_TA_offset
=
624
/
4
;
N_TA_offset
=
624
/
4
;
...
@@ -1187,7 +1187,7 @@ void setup_eNB_buffers(PHY_VARS_eNB *phy_vars_eNB,
...
@@ -1187,7 +1187,7 @@ void setup_eNB_buffers(PHY_VARS_eNB *phy_vars_eNB,
// replace RX signal buffers with mmaped HW versions
// replace RX signal buffers with mmaped HW versions
for
(
i
=
0
;
i
<
frame_parms
->
nb_antennas_rx
;
i
++
)
{
for
(
i
=
0
;
i
<
frame_parms
->
nb_antennas_rx
;
i
++
)
{
free
(
phy_vars_eNB
->
lte_eNB_common_vars
.
rxdata
[
0
][
i
]);
free
(
phy_vars_eNB
->
lte_eNB_common_vars
.
rxdata
[
0
][
i
]);
phy_vars_eNB
->
lte_eNB_common_vars
.
rxdata
[
0
][
i
]
=
((
s32
*
)
phy_vars_eNB
->
lte_eNB_common_vars
.
rxdata
[
0
][
i
]
=
((
int32_t
*
)
openair0_exmimo_pci
[
card
].
adc_head
[
i
+
carrier
])
-
openair0_exmimo_pci
[
card
].
adc_head
[
i
+
carrier
])
-
N_TA_offset
;
// N_TA offset for TDD
N_TA_offset
;
// N_TA offset for TDD
...
@@ -1201,7 +1201,7 @@ void setup_eNB_buffers(PHY_VARS_eNB *phy_vars_eNB,
...
@@ -1201,7 +1201,7 @@ void setup_eNB_buffers(PHY_VARS_eNB *phy_vars_eNB,
}
}
for
(
i
=
0
;
i
<
frame_parms
->
nb_antennas_tx
;
i
++
)
{
for
(
i
=
0
;
i
<
frame_parms
->
nb_antennas_tx
;
i
++
)
{
free
(
phy_vars_eNB
->
lte_eNB_common_vars
.
txdata
[
0
][
i
]);
free
(
phy_vars_eNB
->
lte_eNB_common_vars
.
txdata
[
0
][
i
]);
phy_vars_eNB
->
lte_eNB_common_vars
.
txdata
[
0
][
i
]
=
(
s32
*
)
phy_vars_eNB
->
lte_eNB_common_vars
.
txdata
[
0
][
i
]
=
(
int32_t
*
)
openair0_exmimo_pci
[
card
].
dac_head
[
i
+
carrier
];
openair0_exmimo_pci
[
card
].
dac_head
[
i
+
carrier
];
/*
/*
...
...
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