Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 4cha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC DEL 1ns 4cha
Commits
289428fe
Commit
289428fe
authored
Jun 07, 2013
by
Juan David González Cobas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delay: ignore delays less than 600ns
This is below spec, and the driver must ignore it
parent
6a42b2e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
fd-zio.c
kernel/fd-zio.c
+8
-1
No files found.
kernel/fd-zio.c
View file @
289428fe
...
...
@@ -428,7 +428,7 @@ void fd_apply_offset(uint32_t *a, int32_t off_pico)
/* Internal output engine */
static
void
__fd_zio_output
(
struct
fd_dev
*
fd
,
int
index1_4
,
uint32_t
*
attrs
)
{
struct
timespec
delta
,
width
;
struct
timespec
delta
,
width
,
delay
;
int
ch
=
index1_4
-
1
;
int
mode
=
attrs
[
FD_ATTR_OUT_MODE
];
int
rep
=
attrs
[
FD_ATTR_OUT_REP
];
...
...
@@ -440,6 +440,13 @@ static void __fd_zio_output(struct fd_dev *fd, int index1_4, uint32_t *attrs)
}
if
(
mode
==
FD_OUT_MODE_DELAY
)
{
/* check delay lower limits */
delay
.
tv_sec
=
(
uint64_t
)
attrs
[
FD_ATTR_OUT_START_H
]
<<
32
|
attrs
[
FD_ATTR_OUT_START_L
];
delay
.
tv_nsec
=
attrs
[
FD_ATTR_OUT_START_COARSE
]
*
8
;
if
(
delay
.
tv_sec
==
0
&&
delay
.
tv_nsec
<
600
)
return
;
fd_apply_offset
(
attrs
+
FD_ATTR_OUT_START_H
,
fd
->
calib
.
tdc_zero_offset
);
fd_apply_offset
(
attrs
+
FD_ATTR_OUT_END_H
,
...
...
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