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
384e1136
Commit
384e1136
authored
Dec 20, 2017
by
Eurecom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
signal output when sync
parent
d7718fb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
targets/RT/USER/lte-ru.c
targets/RT/USER/lte-ru.c
+9
-7
No files found.
targets/RT/USER/lte-ru.c
View file @
384e1136
...
@@ -1818,8 +1818,8 @@ void *ru_thread_synch(void *arg) {
...
@@ -1818,8 +1818,8 @@ void *ru_thread_synch(void *arg) {
int32_t
sync_pos
,
sync_pos2
;
int32_t
sync_pos
,
sync_pos2
;
uint32_t
peak_val
;
uint32_t
peak_val
;
uint32_t
sync_corr
[
307200
]
__attribute__
((
aligned
(
32
)));
uint32_t
sync_corr
[
307200
]
__attribute__
((
aligned
(
32
)));
static
int
ru_thread_synch_status
;
static
int
ru_thread_synch_status
=
0
;
int
cnt
=
0
;
thread_top_init
(
"ru_thread_synch"
,
0
,
5000000
,
10000000
,
10000000
);
thread_top_init
(
"ru_thread_synch"
,
0
,
5000000
,
10000000
,
10000000
);
...
@@ -1843,8 +1843,8 @@ void *ru_thread_synch(void *arg) {
...
@@ -1843,8 +1843,8 @@ void *ru_thread_synch(void *arg) {
fp
->
samples_per_tti
*
5
,
fp
->
samples_per_tti
*
5
,
&
peak_val
,
&
peak_val
,
sync_corr
);
sync_corr
);
LOG_I
(
PHY
,
"RU synch
: %d, val %d
\n
"
,
sync_pos
,
peak_val
);
LOG_I
(
PHY
,
"RU synch
cnt %d: %d, val %d
\n
"
,
cnt
,
sync_pos
,
peak_val
);
cnt
++
;
if
(
sync_pos
>=
0
)
{
if
(
sync_pos
>=
0
)
{
if
(
sync_pos
>=
fp
->
nb_prefix_samples
)
if
(
sync_pos
>=
fp
->
nb_prefix_samples
)
sync_pos2
=
sync_pos
-
fp
->
nb_prefix_samples
;
sync_pos2
=
sync_pos
-
fp
->
nb_prefix_samples
;
...
@@ -1879,9 +1879,11 @@ void *ru_thread_synch(void *arg) {
...
@@ -1879,9 +1879,11 @@ void *ru_thread_synch(void *arg) {
ru
->
state
=
RU_RUN
;
ru
->
state
=
RU_RUN
;
}
// symc_pos > 0
}
// symc_pos > 0
else
{
else
{
write_output
(
"ru_sync.m"
,
"sync"
,(
void
*
)
&
sync_corr
[
0
],
fp
->
samples_per_tti
*
5
,
1
,
2
);
if
(
cnt
>
9
)
{
write_output
(
"ru_rx.m"
,
"rxs"
,(
void
*
)
ru
->
common
.
rxdata
[
0
],
fp
->
samples_per_tti
*
10
,
1
,
1
);
write_output
(
"ru_sync.m"
,
"sync"
,(
void
*
)
&
sync_corr
[
0
],
fp
->
samples_per_tti
*
5
,
1
,
2
);
exit
(
1
);
write_output
(
"ru_rx.m"
,
"rxs"
,(
void
*
)
ru
->
common
.
rxdata
[
0
],
fp
->
samples_per_tti
*
10
,
1
,
1
);
exit
(
1
);
}
}
}
}
// ru->in_synch==0
}
// ru->in_synch==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