Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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 TDC 1ns 5cha - Software
Commits
ee4b32d5
Commit
ee4b32d5
authored
Nov 15, 2012
by
Samuel Iglesias Gonsálvez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tdc: add comments in tdc_is_valid_pulse_width()
Signed-off-by:
Samuel Iglesias Gonsalvez
<
siglesias@igalia.com
>
parent
21a2f848
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
tdc-fmc.c
drivers/tdc-fmc.c
+2
-1
No files found.
drivers/tdc-fmc.c
View file @
ee4b32d5
...
...
@@ -99,10 +99,11 @@ static inline int tdc_is_valid_pulse_width(struct tdc_event rising, struct tdc_e
{
uint64_t
up
,
down
;
/* Convert the timestamp to picoseconds */
up
=
rising
.
coarse_time
*
8000000000
+
rising
.
fine_time
*
81
;
down
=
(
falling
.
local_utc
-
rising
.
local_utc
)
*
1000000000000
+
falling
.
coarse_time
*
8000000000
+
rising
.
fine_time
*
81
;
/* Valid pulse width if it is higher of 100 ns */
return
(
down
-
up
>
100000
);
}
...
...
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