I’m new to freeRTOS. I’m looking for a taskNotify function that can replace xEventGroupGetBits(), i.e. query the notification without blocking or waiting. According to freeRTOS documentation (http://www.freertos.org/ulTaskNotifyTake.html), an RTOS task can use ulTaskNotifyTake() to [optionally] block to wait for a the task’s notification value to be non-zero. So it sounds there is an option not to block, but I’m not quite sure how. I was thinking to set the xTicksToWait to “0”, but apparently the document says it must be a number that is greater than “0”. Cheers Liang
As far as I recall, all blocking API functions can accept a block time of 0. Please provide a reference to the documentation that says this is not the case.
Thanks for the prompt reply. I checked the manual again and can’t find the restriction. I was probably looking at the wrong doc previously, appologize for the confusion. If “0” is the valid value for the wait time, then that’s exact what I wanted. Thanks for the help.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.