Quality RTOS & Embedded Software

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


Loading

sending a message to a queue from timer tick

Posted by JMR on June 16, 2008
Hi folks,

I need your enlightened views on the following.
I've got a task (Task X) that spends most of its time suspended waiting on a message to be posted to a queue. This works fine so far. Other tasks send a message to this one via the queue and ISRs do the same.
Now I'd like to use the tick hook function to manage a number of "timers" and when these timers lapse I'd like to send a message to task X. I can post a message to task X's queue but for some reason Task X doesn't "see" the message.

Any ideas as to how I could get this going?

Any help is most welcome, I seem to have a bit of a brain block and can't see a way out.

JM

RE: sending a message to a queue from timer tick

Posted by JMR on June 16, 2008
Ignore this one...

It's amazing how putting down what you're trying to achieve crystallises the mind.

It was working all the time the problem was that I'm waiting on two queues. One that receives data from a serial port (and block for a time period) and the other one which gets looked at only if no data has come in.

Now all I have to do is "merge" the two queues into one... Oh I don't fancy that one somehow

JM


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




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

Latest News

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

Video: Watch James Gosling & Richard Barry at re:Invent, Las Vegas 2017.

New FAQ page about the FreeRTOS kernel and Amazon FreeRTOS.


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

Xilinx Microblaze and Zynq partner