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 2005 Threads] Timers managment ?Posted by Nobody/Anonymous on June 23, 2005 How I can manage timers with FREERTOS?. For example, I need to wake up a task if an event arrived or if the the timer is finish
if(message == MAS1) /// else if (Timer1 == FINISH) ///.../// else if (Timer2 == FINISH)
RE: Timers managment ?Posted by Nobody/Anonymous on June 23, 2005 Have the task wait on a queue/semaphore with a timeout? If the event occurs then the queue/semaphore makes the task unblock. If the event does not occur then the timeout (timer) makes the task unblock.
----- or
Have the task bock indefinately on a queue. If the event occurs then a message is posted onto the queue telling the task what the event was. If the time out occurs then a message is posted onto the queue to tell the task that there was a time out (just another event type really).
----- or
Modify the code to do what you want ;-)
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|