Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
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
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Balaji Kolla
openairinterface5G
Commits
38996c75
Commit
38996c75
authored
10 years ago
by
knopp
Browse files
Options
Downloads
Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5797
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
8717057c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
targets/ARCH/COMMON/common_lib.h
+2
-0
2 additions, 0 deletions
targets/ARCH/COMMON/common_lib.h
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
+12
-0
12 additions, 0 deletions
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
with
14 additions
and
0 deletions
targets/ARCH/COMMON/common_lib.h
+
2
−
0
View file @
38996c75
...
@@ -116,10 +116,12 @@ extern "C"
...
@@ -116,10 +116,12 @@ extern "C"
/* return 0 if OK, < 0 if error */
/* return 0 if OK, < 0 if error */
int
openair0_device_init
(
openair0_device
*
device
,
openair0_config_t
*
openair0_cfg
);
int
openair0_device_init
(
openair0_device
*
device
,
openair0_config_t
*
openair0_cfg
);
openair0_timestamp
get_usrp_time
(
openair0_device
*
device
);
openair0_timestamp
get_usrp_time
(
openair0_device
*
device
);
int
openair0_set_frequencies
(
openair0_device
*
device
,
openair0_config_t
*
openair0_cfg
);
}
}
#else
#else
int
openair0_device_init
(
openair0_device
*
device
,
openair0_config_t
*
openair0_cfg
);
int
openair0_device_init
(
openair0_device
*
device
,
openair0_config_t
*
openair0_cfg
);
openair0_timestamp
get_usrp_time
(
openair0_device
*
device
);
openair0_timestamp
get_usrp_time
(
openair0_device
*
device
);
int
openair0_set_frequencies
(
openair0_device
*
device
,
openair0_config_t
*
openair0_cfg
);
#endif
#endif
#endif // COMMON_LIB_H
#endif // COMMON_LIB_H
This diff is collapsed.
Click to expand it.
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
+
12
−
0
View file @
38996c75
...
@@ -174,6 +174,18 @@ static bool is_equal(double a, double b)
...
@@ -174,6 +174,18 @@ static bool is_equal(double a, double b)
{
{
return
std
::
fabs
(
a
-
b
)
<
std
::
numeric_limits
<
double
>::
epsilon
();
return
std
::
fabs
(
a
-
b
)
<
std
::
numeric_limits
<
double
>::
epsilon
();
}
}
int
openair0_set_frequencies
(
openair0_device
*
device
,
openair0_config_t
*
openair0_cfg
)
{
usrp_state_t
*
s
=
(
usrp_state_t
*
)
device
->
priv
;
s
->
usrp
->
set_tx_freq
(
openair0_cfg
[
0
].
tx_freq
[
0
]);
s
->
usrp
->
set_rx_freq
(
openair0_cfg
[
0
].
rx_freq
[
0
]);
return
(
0
);
}
int
openair0_device_init
(
openair0_device
*
device
,
openair0_config_t
*
openair0_cfg
)
int
openair0_device_init
(
openair0_device
*
device
,
openair0_config_t
*
openair0_cfg
)
{
{
...
...
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