Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT




Loading

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.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS