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] [June 2017 Threads] How to use taskNotify to replace xEventGroupGetBits() Posted by liangmiao on June 20, 2017 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
How to use taskNotify to replace xEventGroupGetBits() Posted by rtel on June 20, 2017 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.
How to use taskNotify to replace xEventGroupGetBits() Posted by liangmiao on June 20, 2017 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.
|