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] [March 2012 Threads] How does FreeRTOS keeps track of time/ticks?Posted by PhenomX on March 24, 2012 Is this purely done with software, or is FreeRTOS using an MCU timer to keep track of how many ticks the CPU have gone through. I came across this question with this method:
void vTaskDelay( portTickType xTicksToDelay )
I want to make sure I am not modifying a timer the FreeRTOS is using and therefore messing up the operations. Also, how I can I find out which task is running at a specific breakpoint in the program. Is there a data structure I can look into and find out?
Thank you, -Adrian
RE: How does FreeRTOS keeps track of time/ticks?Posted by Richard Damon on March 25, 2012 FreeRTOS needs some form of periodic interrupt for its timer tic, which usually is generated via a built in timer. You need to look at the code in port.c to see how it is implemented as it does vary from port to port (and if you want to, you can change/create a new file) to change this if needed.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|