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
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
hdl-core-lib
mock-turtle
Commits
2868d6fe
Commit
2868d6fe
authored
Jul 30, 2018
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tst:fw:rmq: FIX claim returns 0 on success
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
27e6198c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
rmq-udp-send.c
tests/firmware/rmq-udp-send/rmq-udp-send.c
+3
-1
No files found.
tests/firmware/rmq-udp-send/rmq-udp-send.c
View file @
2868d6fe
...
...
@@ -36,9 +36,11 @@ uint32_t rx_errors = 0;
void
send_reply
(
int
cpu_id
,
int
rmq
,
int
payload_len
)
{
struct
trtl_fw_msg
msg
;
int
err
;
// queue full? wait
if
(
!
mq_claim
(
TRTL_RMQ
,
rmq
))
err
=
mq_claim
(
TRTL_RMQ
,
rmq
);
if
(
err
<
0
)
return
;
mq_map_out_message
(
TRTL_RMQ
,
rmq
,
&
msg
);
...
...
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