Commit dc4c03df authored by Federico Vaga's avatar Federico Vaga

doc: fix firmware examples of mq_poll_*()

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 43d0a913
......@@ -148,7 +148,7 @@ Here is an example of how to send a message::
struct trtl_fw_msg msg;
uint32_t status;
while ((mq_poll_out(TRTL_HMQ) & (1 << HMQ_NUM)) == 0)
while ((mq_poll_out(TRTL_HMQ, 1 << HMQ_NUM)) == 0)
; /* wait until queue not full */
mq_claim(TRTL_HMQ, HMQ_NUM);
......@@ -176,7 +176,7 @@ Here is an example on how to receive a message::
struct trtl_fw_msg msg;
uint32_t status;
while ((mq_poll_in(TRTL_HMQ) & (1 << HMQ_NUM)) == 0)
while ((mq_poll_in(TRTL_HMQ, 1 << HMQ_NUM)) == 0)
; /* wait until queue not empty */
mq_map_in_message(TRTL_HMQ, HMQ_NUM, &msg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment