Quality RTOS & Embedded Software

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




Loading

Notify

Posted by Teun on November 29, 2004
I have different task running under FreeRTOS. These tasks kind of work together, so to control the interaction I have made another task; a controller task. The problem I now have is that this controller task needs to wait for any of the other tasks to fire an event. When any of the other tasks fires an event the controller task needs to perform some action (so it needs to know which task fired the event). When I say fire an event I mean that the task needs to give a notification to another task. Can anyone point out a nice way to do this in FreeRTOS? Thank you in advance!
Kind Regards,
Teun

RE: Notify

Posted by Nobody/Anonymous on November 29, 2004
Can you use a queue?

The controller task blocks on the queue. When one of the other tasks 'fires an event' it simply posts a number on the queue that identifies the task. The controller task will unblock when data becomes available on the queue, read the number, and perform take any action necessary.

RE: Notify

Posted by Teun on December 1, 2004
Thanks for the advice! I was thinking in the same direction. The only thing I miss in this approach are priorities, but I guess that’s not so bad. I’ll implement it like this.
Thanks again!

Kind Regards,
Teun


[ 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