receive should block forever on portMAX_DELAY
Posted by dcraw
on June 6, 2008
I am running FreeRTOS on an AVR atmega 128. I am calling crQUEUE_RECEIVE with the timeout set to portMAX_DELAY. I expect the call to block forever, but after several minutes the call returns with result != pdPASS.
RE: receive should block forever on portMAX_DELAY
Posted by Richard
on June 7, 2008
I would have to double check the co-routine behaviour, but with tasks portMAX_DELAY will only result in an indefinite delay if INCLUDE_vTaskSuspend is set to 1. If you set configUSE_16_BIT_TICKS to 0 you will be able to get much longer delays (months depending on the thick count frequency), but the code will be a bit less efficient on an 8bit processor.
Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd..
See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.