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
promise
OpenXG-RAN
Commits
2f00edeb
Commit
2f00edeb
authored
Sep 26, 2016
by
Rohit Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor compilation fixes to BladeRF driver
parent
3124cb2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
targets/ARCH/BLADERF/USERSPACE/LIB/bladerf_lib.c
targets/ARCH/BLADERF/USERSPACE/LIB/bladerf_lib.c
+2
-6
No files found.
targets/ARCH/BLADERF/USERSPACE/LIB/bladerf_lib.c
View file @
2f00edeb
...
...
@@ -902,8 +902,8 @@ int device_init(openair0_device *device, openair0_config_t *openair0_cfg) {
brf_state_t
*
brf
=
(
brf_state_t
*
)
malloc
(
sizeof
(
brf_state_t
));
memset
(
brf
,
0
,
sizeof
(
brf_state_t
));
/* device specific */
openair0_cfg
->
txlaunch_wait
=
1
;
//manage when TX processing is triggered
openair0_cfg
->
txlaunch_wait_slotcount
=
1
;
//manage when TX processing is triggered
//
openair0_cfg->txlaunch_wait = 1;//manage when TX processing is triggered
//
openair0_cfg->txlaunch_wait_slotcount = 1; //manage when TX processing is triggered
openair0_cfg
->
iq_txshift
=
0
;
// shift
openair0_cfg
->
iq_rxrescale
=
15
;
//rescale iqs
...
...
@@ -912,22 +912,18 @@ int device_init(openair0_device *device, openair0_config_t *openair0_cfg) {
case
30720000
:
openair0_cfg
->
samples_per_packet
=
2048
;
openair0_cfg
->
tx_sample_advance
=
0
;
openair0_cfg
->
tx_scheduling_advance
=
8
*
openair0_cfg
->
samples_per_packet
;
break
;
case
15360000
:
openair0_cfg
->
samples_per_packet
=
2048
;
openair0_cfg
->
tx_sample_advance
=
0
;
openair0_cfg
->
tx_scheduling_advance
=
4
*
openair0_cfg
->
samples_per_packet
;
break
;
case
7680000
:
openair0_cfg
->
samples_per_packet
=
1024
;
openair0_cfg
->
tx_sample_advance
=
0
;
openair0_cfg
->
tx_scheduling_advance
=
4
*
openair0_cfg
->
samples_per_packet
;
break
;
case
1920000
:
openair0_cfg
->
samples_per_packet
=
256
;
openair0_cfg
->
tx_sample_advance
=
50
;
openair0_cfg
->
tx_scheduling_advance
=
8
*
openair0_cfg
->
samples_per_packet
;
break
;
default:
printf
(
"Error: unknown sampling rate %f
\n
"
,
openair0_cfg
->
sample_rate
);
...
...
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