Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Trigger Distribution
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
White Rabbit Trigger Distribution
Commits
c283c9b9
Commit
c283c9b9
authored
Aug 22, 2018
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fw/tdc: set packet length, claim only once per message.
parent
8370f746
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
wrtd-rt-tdc.c
software/firmware/tdc/wrtd-rt-tdc.c
+7
-3
No files found.
software/firmware/tdc/wrtd-rt-tdc.c
View file @
c283c9b9
...
...
@@ -115,11 +115,18 @@ static inline void send_trigger (struct wrtd_trigger_entry *ent)
int
ret
;
if
(
coalesce_count
==
0
)
{
struct
trtl_fw_msg
fw_msg
;
ret
=
mq_claim
(
TRTL_RMQ
,
WRTD_IN_RMQ
);
if
(
ret
<
0
)
{
pr_error
(
"RMQ full
\n\r
"
);
return
;
}
mq_map_out_message
(
TRTL_RMQ
,
WRTD_IN_RMQ
,
&
fw_msg
);
fw_msg
.
header
->
msg_id
=
0
;
fw_msg
.
header
->
len
=
sizeof
(
struct
wrtd_trigger_message
)
/
4
;
}
msg
=
mq_map_out_buffer
(
TRTL_RMQ
,
WRTD_IN_RMQ
);
...
...
@@ -210,9 +217,6 @@ static inline void do_input(void)
{
int
i
;
/* Prepare for message transmission */
mq_claim
(
TRTL_RMQ
,
WRTD_IN_RMQ
);
/* We can send up to TDC_TRIGGER_COALESCE_LIMIT triggers in a
single message - the loop will iterate up to this limit or exit
immediately if there's no more input pulses in the TDC FIFO */
...
...
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