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
ce8f1ecc
Commit
ce8f1ecc
authored
Aug 06, 2014
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: explicit concepts
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
f9c04ec9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
ft-irq.c
kernel/ft-irq.c
+9
-3
No files found.
kernel/ft-irq.c
View file @
ce8f1ecc
...
...
@@ -171,9 +171,13 @@ static inline void process_timestamp(struct fmctdc_dev *ft,
}
if
(
st
->
expected_edge
!=
0
)
{
/* From this point we are working with the expected EDGE */
if
(
st
->
expected_edge
==
1
)
{
/* We received a raising edge, save the time stamp and
wait for the falling edge */
st
->
prev_ts
=
ts
;
st
->
expected_edge
=
1
-
st
->
expected_edge
;
st
->
expected_edge
=
0
;
return
;
}
...
...
@@ -206,7 +210,9 @@ static inline void process_timestamp(struct fmctdc_dev *ft,
/* Put the timestamp in the FIFO */
enqueue_timestamp
(
ft
,
channel
,
&
ts
);
}
st
->
expected_edge
=
1
-
st
->
expected_edge
;
/* Wait for the next raising edge */
st
->
expected_edge
=
1
;
}
static
irqreturn_t
ft_irq_handler
(
int
irq
,
void
*
dev_id
)
...
...
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