Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OAI-RAN-5G-sheduler_MaxTBS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MAQ5G-PFC
OAI-RAN-5G-sheduler_MaxTBS
Commits
ca0ff4b5
Commit
ca0ff4b5
authored
8 years ago
by
Cedric Roux
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/lmssdr-fix-w13' into develop_integration_w13
parents
a77082c1
fa0b8668
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
targets/ARCH/LMSSDR/USERSPACE/LIB/lms_lib.cpp
+15
-1
15 additions, 1 deletion
targets/ARCH/LMSSDR/USERSPACE/LIB/lms_lib.cpp
with
15 additions
and
1 deletion
targets/ARCH/LMSSDR/USERSPACE/LIB/lms_lib.cpp
+
15
−
1
View file @
ca0ff4b5
...
...
@@ -45,6 +45,14 @@ lms_device_t* lms_device;
lms_stream_t
rx_stream
;
lms_stream_t
tx_stream
;
/* We have a strange behavior when we just start reading
* from the device (inconsistent values of the timestamp).
* A quick solution is to discard the very first read packet
* after a "start".
* The following global variable "first_rx" serves that purpose.
*/
static
int
first_rx
=
0
;
#define RXDCLENGTH 4096
#define NUMBUFF 32
...
...
@@ -94,6 +102,10 @@ int trx_lms_read(openair0_device *device, openair0_timestamp *ptimestamp, void *
meta
.
flushPartialPacket
=
false
;
int
ret
;
if
(
first_rx
==
1
)
{
first_rx
=
0
;
ret
=
LMS_RecvStream
(
&
rx_stream
,
buff
[
0
],
nsamps
,
&
meta
,
50
);
}
ret
=
LMS_RecvStream
(
&
rx_stream
,
buff
[
0
],
nsamps
,
&
meta
,
50
);
*
ptimestamp
=
meta
.
timestamp
;
return
ret
;
...
...
@@ -223,6 +235,8 @@ int trx_lms_start(openair0_device *device){
}
first_rx
=
1
;
rx_stream
.
channel
=
0
;
rx_stream
.
fifoSize
=
256
*
1024
;
rx_stream
.
throughputVsLatency
=
0.1
;
...
...
@@ -355,7 +369,7 @@ int device_init(openair0_device *device, openair0_config_t *openair0_cfg){
break
;
case
15360000
:
openair0_cfg
[
0
].
samples_per_packet
=
2048
;
openair0_cfg
[
0
].
tx_sample_advance
=
4
50
;
openair0_cfg
[
0
].
tx_sample_advance
=
50
;
/* TODO: to be refined */
openair0_cfg
[
0
].
tx_bw
=
15.36e6
;
openair0_cfg
[
0
].
rx_bw
=
15.36e6
;
break
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment