FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [January 2006 Threads] xQueueReceive : how to block with xTicksToWaiPosted by ch2 on January 24, 2006 I would like to block forever one task using xQueueReceive if it never received data in the queue : what should I put in xTicksToWait? Thanks
RE: xQueueReceive : how to block with xTicksToWaiPosted by Richard on January 24, 2006 What you have to do is put the call to xQueueReceive into a loop as:
while( !xQUeueReceive( ... ) );
using portMAX_DELAY as the delay period. The while loop will then only exit when data is available.
Regards.
RE: xQueueReceive : how to block with xTicksToWaiPosted by ch2 on January 24, 2006 thanks for your quick & precise answer. I have another question : I receive data on the HDLC port from the STR710 and during the IRQ HDLC I'm storing this data one byte after another one int the queue. And I have one task which is waiking up when there is data in the queue : will this task wake up after the irq wrote 1 byte in the queue or at the end of the IRQ? Thanks chris
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|