Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Mock Turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
Mock Turtle
Commits
575cefa9
Commit
575cefa9
authored
Aug 10, 2015
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrtd:rt: sw trig, fix take into account host delay
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
aa0cd9ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
rt-tdc.c
applications/wrtd/rt/tdc/rt-tdc.c
+7
-3
No files found.
applications/wrtd/rt/tdc/rt-tdc.c
View file @
575cefa9
...
...
@@ -400,15 +400,19 @@ static inline void ctl_chan_get_state (uint32_t seq, struct wrnc_msg *ibuf)
static
inline
void
ctl_software_trigger
(
uint32_t
seq
,
struct
wrnc_msg
*
ibuf
)
{
struct
wr_timestamp
ts
;
/* and dumbly copy the trigger entry */
struct
wrtd_trigger_entry
ent
;
wrtd_msg_trigger_entry
(
ibuf
,
&
ent
);
ctl_ack
(
seq
);
ent
.
ts
.
seconds
=
lr_readl
(
WRN_CPU_LR_REG_TAI_SEC
);
ent
.
ts
.
ticks
=
lr_readl
(
WRN_CPU_LR_REG_TAI_CYCLES
);
ent
.
ts
.
frac
=
0
;
/* trigger entity ts from the host contains the delay.
So add to it the current time */
ts
.
seconds
=
lr_readl
(
WRN_CPU_LR_REG_TAI_SEC
);
ts
.
ticks
=
lr_readl
(
WRN_CPU_LR_REG_TAI_CYCLES
);
ts
.
frac
=
0
;
ts_add
(
&
ent
.
ts
,
&
ts
);
/* Send trigger */
send_trigger
(
&
ent
);
...
...
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