Quality RTOS & Embedded Software

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


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 ]    [ Privacy ]    [ Sitemap ]    [ ]


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

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

Xilinx Microblaze and Zynq partner