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
canghaiwuhen
OpenXG-RAN
Commits
e5d7fac0
Commit
e5d7fac0
authored
May 11, 2017
by
Xiwen JIANG
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asn1c compliation problem + small changes in openair0_lib
parent
aac0097b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
cmake_targets/tools/fix_asn1
cmake_targets/tools/fix_asn1
+0
-1
targets/ARCH/EXMIMO/USERSPACE/LIB/openair0_lib.c
targets/ARCH/EXMIMO/USERSPACE/LIB/openair0_lib.c
+4
-4
No files found.
cmake_targets/tools/fix_asn1
View file @
e5d7fac0
...
@@ -25,7 +25,6 @@ reset_color="$(tput sgr0)"
...
@@ -25,7 +25,6 @@ reset_color="$(tput sgr0)"
function
error
()
function
error
()
{
{
echo
-e
"
$red_color
"
ERROR:
"
$@
""
$reset_color
"
echo
-e
"
$red_color
"
ERROR:
"
$@
""
$reset_color
"
exit
1
}
}
function
check_sha1
()
function
check_sha1
()
...
...
targets/ARCH/EXMIMO/USERSPACE/LIB/openair0_lib.c
View file @
e5d7fac0
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
#define max(a,b) ((a)>(b) ? (a) : (b))
#define max(a,b) ((a)>(b) ? (a) : (b))
//
#define DEBUG_EXMIMO
#define DEBUG_EXMIMO
exmimo_pci_interface_bot_virtual_t
openair0_exmimo_pci
[
MAX_CARDS
];
// contains userspace pointers for each card
exmimo_pci_interface_bot_virtual_t
openair0_exmimo_pci
[
MAX_CARDS
];
// contains userspace pointers for each card
...
@@ -599,10 +599,10 @@ int trx_exmimo_read(openair0_device *device, openair0_timestamp *ptimestamp, voi
...
@@ -599,10 +599,10 @@ int trx_exmimo_read(openair0_device *device, openair0_timestamp *ptimestamp, voi
diff
=
exm
->
last_ts_rx
+
n
-
ts
;
// difference in samples between current timestamp and last RX received sample
diff
=
exm
->
last_ts_rx
+
n
-
ts
;
// difference in samples between current timestamp and last RX received sample
// go to sleep until we should have enough samples (1024 for a bit more)
// go to sleep until we should have enough samples (1024 for a bit more)
#ifdef DEBUG_EXMIMO
#ifdef DEBUG_EXMIMO
printf
(
"portion %d samples,
ts %lu, last_ts_rx %lu (%lu) => sleeping %u us
\n
"
,
n
,
ts
,
exm
->
last_ts_rx
,
exm
->
last_ts_rx
+
n
,
printf
(
"portion %d samples,
(n1, n2) = (%d, %d), ts %lu, last_ts_rx %lu (%lu) => sleeping %u us
\n
"
,
n
,
n1
,
n2
,
ts
,
exm
->
last_ts_rx
,
exm
->
last_ts_rx
+
n
,
(
unsigned
int
)((
double
)(
diff
+
1024
)
*
1e6
/
cfg
->
sample_rate
));
(
unsigned
int
)((
double
)(
diff
+
1024
)
*
1e6
/
cfg
->
sample_rate
));
#endif
#endif
tv_nsec
=
(
unsigned
long
)((
double
)(
diff
+
3840
)
*
1e9
/
cfg
->
sample_rate
);
tv_nsec
=
(
unsigned
long
)((
double
)(
diff
+
1024
)
*
1e9
/
cfg
->
sample_rate
);
// tv_nsec = 500000L;
// tv_nsec = 500000L;
old_ts
=
ts
;
old_ts
=
ts
;
rt_sleep
(
&
sleep_time
,
tv_nsec
);
rt_sleep
(
&
sleep_time
,
tv_nsec
);
...
...
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